like to know which is better to built a ecommerce based website
php vs asp
PHP.....because....PHP is cool
That's my opinion but here are a couple articles you can read over to decide for yourself:
http://www.oracle.com/technology/pub/articles/hull_asp.html
http://www.phpbuddy.com/sub_articles.php?other_articles=9
after programming asp for the last 2 years and now finally starting php, i would have to say php.
asp doesnt have half the features of php. i do find the syntax a little easier in asp, but if your just starting i would definately say go with php.
im sure i found asp's syntax a little difficult at first too.
Having spent a lot of time building all of the ecommerce functions of the company I work for, I really have to say that I enjoy the flexibility that PHP offers. Integration with mysql and many other server functions is a snap!
Fair disclosure: I've only learned everything I know through tinkering with PHP, and have never really messed with ASP.
Originally posted by adnan856
like to know which is better to built a ecommerce based website
Both languages have their purpose why not search in the Echo Lounge this topic has come up a lot of times not just on PHPBuilder.
And PHP was voted "Language of the Year 2004" in January by some random outfit (Tiobe) after increasing 3% points over that time, while ASP isn't even a language.
http://www.developer.com/lang/article.php/3433891
http://www.tiobe.com/tpci.htm
Originally posted by Weedpacket
And PHP was voted "Language of the Year 2004" in January by some random outfit (Tiobe) after increasing 3% points over that time, while ASP isn't even a language.
http://www.developer.com/lang/article.php/3433891
http://www.tiobe.com/tpci.htm
PHP was also class president and voted "most likely to succeed".
I've been told, although I have not proof, that ASP lives in a high-rise condo paid for by Bill Gates - you know, on the hush...
Originally posted by vaaaska
PHP was also class president and voted "most likely to succeed".
I was once voted "most likely to dissolve" by my chemistry class....
ASP lives in a high-rise condo paid for by Bill Gates
As some sort of toyboy? Not that I'm about to start any rumours along those lines...
being that you asked this question on 'PHP'builders.com you are going to get a one sided answer. So from a person that has coded more in ASP then PHP I would have to say PHP is clearly better. Not only are the functions better and are more geared towards the web, but I also prefer C syntax.
Now if you compared C# and .NET with PHP it would be a different story. Though I would say PHP is still easier to learn if you are new to web programming.
Just for the sake of fair play, you should ask this question on an ASP forum as well. Though, I'd be shocked if you got any real answers beyond "ASP!".
PHP, all the way. Why? Because I know PHP
Note: you guys find me a good link to a PHP vs ASP thread and i'll stick it in the FAQ
I've worked with ASP (v4? - the .NET challenged version of ASP) for 2 years and had been working with PHP before hand. ASP comes in two flavors: JScript and VBScript. I would have killed myself if I was forced to do VBScript flavor. The shop I was at was a JScript/C++ shop so it worked out great.
On the outer layer, ASP is great at working with MS products (all servers and Office products). PHP requires some work and creativity to persuade it to modify directly a Word doc or Excel file (not impossible, but not built in or easy either).
ASP had been limited to only IIS. I think there's something out there to allow ASP like code to run under Linux and other environments. At the moment I've forgotten what it is...
ASP is a bit more structured in terms of naming conventions which has been a regular complaint of PHP from what I've read on the 'net. ASP's object oriented coding is much like JavaScript's. Better or worse than PHP? I'd say it was better in ASP. PHP's OO (in v4) feels more like it was an after-thought. But at the same time, to produce a web page, do you really need OO design? This could be an entirely seperate argument...
PHP is a lot more feature rich. It excels in string and date handling. String handling is do-able in ASP, but you have a limited number of functions to work with which means you have to re-invent the wheel. And doing web stuff is mostly just working with strings. As for dates, ASP doesn't have anything like PHP's date function. It is very possible to build your own to match PHP's (I did because it drove me nuts not to have it!). The ASP date formatting, by itself, is rather limiting.
Continuing on about being feature rich, PHP has a lot of stuff included in it to handle things like graphics, PDFs, curl, etc which doesn't come included with ASP. In some cases, you have to buy additional components to plug into ASP to do what PHP can already do.
Another thing that bugged the snot out of me with ASP is handling library files. Lets say you have a file with a collection of functions. You wish to have this collection included with each page. In PHP, its a simple include() or require() option. ASP (non-.NET flavor under IIS) requires you to use SSI to include the file. If you do SSI, there's no way to dynamically skip loading the file (in PHP,you can use if() to wiggle around an include/require).
I love PHP's array handling. I don't remember any examples at the moment, but I do remember ASP's array handling to be a bit strict in what you could get away with. Being strict could also be a good thing if you're looking to write non-buggy code without having much experience.
I personally choose the language my bosses want me to use (followed by which ever one gets the job done). But for coding at home, PHP is my choice. If you're using (or stuck with) IIS, then ASP definitely makes sense. Otherwise PHP can do just about everything ASP can do and usually make it a lot easier too.
Keep in mind its hard to debate two languages. There's coding preferences, ease of use, the task at hand, and background experience that all plays into picking one over the other. I'd say spend some time and figure out what platform you wish to develop under and pick the language that best fits it...
PHP is advancing to the next round in the World Cup Championship after a 3-1 defeat over ASP. Next up is Saudi Arabia!!!
Originally posted by AstroTeg
I've worked with ASP (v4? - the .NET challenged version of ASP) for 2 years and had been working with PHP before hand. ASP comes in two flavors: JScript and VBScript.
Don't forget PerlScript. Like I said: ASP isn't a language. Any more than CGI.
I would have killed myself if I was forced to do VBScript flavor.
I was, but didn't: I wish I could have, though (you mean I have to write my own sort function? What is this, the 1970s?). There is code being used on the intranet site of a certain multinational company that contains a big block of string processing that could have been handled by a single PHP function call. In among it is a comment that quotes a VBScript book I was using as a reference to the effect that "one of VBScript's strengths is its rich collection of string handling functions".
Originally posted by vaaaska
PHP is advancing to the next round in the World Cup Championship after a 3-1 defeat over ASP. Next up is Saudi Arabia!!!
...and PHP is worth more in Scrabble than ASP, so it must be betterer.
Originally posted by Shrike
...and PHP is worth more in Scrabble than ASP, so it must be betterer.
But ASP is in the dictionary, while PHP is not.
Though the definition of ASP probably isn't one to be proud of. As I hear it, ASP can kill you. :p
Originally posted by Shrike
http://dictionary.reference.com/search?q=php
![]()
I see it only finds one entry - in AcronymFinder - and abbreviations are disallowed (though who challenges "laser"?)