.NET vs PHP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

.NET vs PHP

Post by hob_goblin »

We all know PHP is better than ASP, but all these .NET fanatics are attacking me.

Seriously, whats the deal?
Am I going to have to be brokenhearted and give in or is PHP better?

Anybody have any arguments as to why PHP is better than .NET?
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

arguing which language is better is like asking what hammer is best to build a house.

the bottom line is the house needs to be built. as long as its built to the blueprint the owner doesn't care how it was built.

btw: php owns :) lol
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

You could check out the below link and see what it has to say. I haven't got a chance to check it out as i'm waiting for a test to complete.

http://php.weblogs.com/discuss/msgReade ... mode=topic

Cheer,
BDKR
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

JPlush76 wrote:arguing which language is better is like asking what hammer is best to build a house.

the bottom line is the house needs to be built. as long as its built to the blueprint the owner doesn't care how it was built.

btw: php owns :) lol
Wow, that was helpful :)
BDKR wrote:You could check out the below link and see what it has to say. I haven't got a chance to check it out as i'm waiting for a test to complete.

http://php.weblogs.com/discuss/msgReade ... mode=topic

Cheer,
BDKR
Thanks, Although I have read that; the biggest thing ASP brags about is having 'large class libraries'...

Oh wow.. http://phpclasses.org
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

come on hob, I gave you the answer :)

I just hid it from prying eyes by making the font color the same as the background. View source and you'll see it

(hopes hob falls for trick)
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

Hey,
Thanks, Although I have read that; the biggest thing ASP brags about is having 'large class libraries'...
This can just as easily be a liability if you ask me.

Good luck,
BDKR
LetterJ
Forum Newbie
Posts: 8
Joined: Fri Nov 01, 2002 10:57 am
Location: St. Paul, MN

Not either/or

Post by LetterJ »

The thing I've found stops a lot of the attacks from the ASP camp is when you calmly explain that PHP can use most of those ASP "classes" and COM components today directly. It only works on Windows, but it works. And, with the experimental .NET extension, PHP can use the .NET framework too. I do quite a bit of PHP stuff on the commandline and you can use the Windows Scripting Host COM objects just fine from PHP.

Tell me ASP people, can ASP use any of PHP's functionality? What it comes down to is that PHP can pretty much do everything ASP can (including use ASP's COM objects) plus a whole lot more.[/b]
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Re: Not either/or

Post by BDKR »

LetterJ wrote:The thing I've found stops a lot of the attacks from the ASP camp is when you calmly explain that PHP can use most of those ASP "classes" and COM components today directly. It only works on Windows, but it works. And, with the experimental .NET extension, PHP can use the .NET framework too. I do quite a bit of PHP stuff on the commandline and you can use the Windows Scripting Host COM objects just fine from PHP.

Tell me ASP people, can ASP use any of PHP's functionality? What it comes down to is that PHP can pretty much do everything ASP can (including use ASP's COM objects) plus a whole lot more.[/b]
And you're only a forum newbie? I think that some of us should be elevelated in status regardless of the number of posts.

Good post J,
BDKR
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

well, there is no application-object in PHP (but who cares ;) )
User avatar
Heavy
Forum Contributor
Posts: 478
Joined: Sun Sep 22, 2002 7:36 am
Location: Viksjöfors, Hälsingland, Sweden
Contact:

Post by Heavy »

The lack of the application object is not really a big deal, i think.
But you mentioning it made me think about session handling.

PHP can store session data in mysql using session_set_save_handler(). has anyone tried that?

It could mean that users can have their lastest session restored when they login next time.
(Better make the session-handling non-memory-leaking...)
neh
Forum Newbie
Posts: 16
Joined: Tue Jul 23, 2002 3:08 am

Post by neh »

Heavy wrote:The lack of the application object is not really a big deal, i think.
But you mentioning it made me think about session handling.

PHP can store session data in mysql using session_set_save_handler(). has anyone tried that?

It could mean that users can have their lastest session restored when they login next time.
(Better make the session-handling non-memory-leaking...)
asp.net lets you load balance your sesion state to a cluster of any valid OLEDB servers ..

php sessions are flaky as your harris .. they are not at all flaky in asp.net and also were never flaky in earlier com based asp versions ..

sorry to contradict you guys .. I do like PHP .. maily however because its free and hosting is cheap and its open source (which means it generally gets a new module whenever some clever bod has an itch to scratch that its currnet code doesnt address) ..

if PHP was type safe and properly OO it would certainly go someway to betting close to using a .NET highlevel language (like C# for instance) - but its not .. (btw type safety essentially stops you using late binding and in doing so saves you coutless hours debugging as things just dont compile if they are cannot be cast properly or variables havent been declared) ..

but again .. dont get me wrong - I'm getting to finishing my first portal framework using PHP / MySQL and I AM fairly impressed with it .. but it aint .net (and comparing MySQL to ANY of the big 3 rdbms is just a joke .. if it had transactions (not beta table code for transactions that is), procedural SQL, cursors and allowed simple things like subqueries - then it just MIGHT get within spitting distance of the others .. but at the moment its just good for very very simple schemas - imho)

.. but like the post above said .. the architecture is greatly more important than the tools used to implement it at the end of the day .. never a truer word m8 :)
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

Post Reply