Re: ASP and PHP
| From: | Olivier Hubert | Date: | Fri, 17 May 2002 20:59:52 +0000 |
| Subject: | Re: ASP and PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13846@lists.php.net to get a copy of this message | ||
Just wanted to stop this whole ASP vs PHP thread before it gets started and I receive a zillion e-mails from PHP-WIN list (something that already happened a few times for this particular subject).
For those who want to compare the two scription languages, please do so between yourselves. Many web sites also have edifying articles on the subject.
I really don't think this discussion is appropriate to this list; I don't find it very constructive. I'm subscribed to this list because I want to receive/give help on how to use PHP on Windows platforms, not argue over which scripting language can do what.
Sorry about the rant, just wanted to avoir an ASP vs PHP war :-)
Olivier
At 16:39 2002-05-17 -0400, Benjamin Walling wrote:
I'm currently switching from ASP to PHP, so I'm not an MS zealot. I did want to clarify some of your statements. "Court Shrock" <ShrockC@inhs.org> wrote in message news:25E1EA6CA52DD311A525009027725B5504C73A40@exchange1.inhs.org... ASP can't do associative arrays like a hash table? ASP has the dictionary object. ASP can't do serious string manipulation ASP has Regular expressions ASP cannot short-circuit a boolean expression ?costing you milliseconds? ASP database connection is very cryptic (because of COM) and lengthy to perform the simplist of queries You're doing it wrong, then. It doesn't take any more than PHP. There are 50 ways to perform queries, and many of them are hard. Many are simple. ASP confuses functions and data structures--arrays and functions You'll have to explain that one. ASP only recognizes strings as double-quote deliminited So what? ASP does not have mult-line comments So what? ASP doesn't understand external http or ftp resources You have to use COM for this. I do a lot of stuff with HTTP and FTP. PHP has very straightforward type casting and conversion mechanisms This is easy in ASP as well. PHP has output buffering and output filtering built in ASP does this (response.buffer/response.flush) PHP is so much faster! (benchmarks that I've seen on linux/apache -> win/iis) Apples > Oranges. So far, my evaluation (win/iis 5.0 for both) has been that ASP is faster. PHP can open ftp and http resources See above. PHP has a very complete set of regular expressions that are tied nicely to their string and array functions ASP has regular expressions and they work quite well. PHP can send email without any additional downloads and cost ASP can too (Server.CreateObject("CDONTS.NewMail")). I'm not sure why companies sell products for this. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpOlivier Hubert Chef d'équipe informatique/IT Team leader Groupe Constructo (514) 856-6646 olivier.hubert@transc.com <http://www.constructo.ca/>www.constructo.ca