Page 1 of 1

.NET vs PHP

Posted: Wed Nov 06, 2002 3:27 pm
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?

Posted: Wed Nov 06, 2002 3:43 pm
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

Posted: Wed Nov 06, 2002 3:50 pm
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

Posted: Wed Nov 06, 2002 3:57 pm
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

Posted: Wed Nov 06, 2002 4:02 pm
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)

Posted: Thu Nov 07, 2002 6:45 am
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

Not either/or

Posted: Fri Nov 08, 2002 10:46 am
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]

Re: Not either/or

Posted: Fri Nov 08, 2002 11:35 am
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

Posted: Sat Nov 09, 2002 12:49 pm
by volka
well, there is no application-object in PHP (but who cares ;) )

Posted: Mon Nov 11, 2002 8:02 am
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...)

Posted: Wed Nov 13, 2002 3:43 am
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 :)

Posted: Wed Nov 13, 2002 3:42 pm
by hob_goblin