Hi If I want to choose my programming language, do you suggest I choose PHP or ASP? What are the advantages and disadvantages of them in compare? Also what is the difference between ASP & ASPX? Thanks
If you're just starting out, I'd recommend php. Asp has kind of moved on to .Net now. So far, php appears really simple to use and is powerful enough for lots of applications.
Definately .Net At the end of the day they both have their strengths and weaknesses and it as much as anything comes down to personal preference. At the moment .Net is compiled and therefore quicker to run but there are ways to compile PHP and the next itteration of PHP which is due before to long can also be compiled and so will remove this advantage Both have free development tools - Visual Web Developer Express is perfectly good enough for 90% of work - and the difference in hosting costs is pennies a month between nix and windows. VWDE has a built in test server and so no issues there. Given the amount of built in components such as gridviews and membership provider etc .Net is typically quicker to develop than PHP but PHP has more free example scripts on the net - though both have millions.
I agree that overall, there is no clear winner: you pick the technology that best suits the situation. I work with PHP as much as I can, though, as although the difference in hosting price is not a concern, the fact of the matter is that most of my clients already have their hosting setup. If they're on Apache, they can't run my ASP.NET application and I would not expect them to change their server just for me... on the other hand, if they're running IIS they can still run my PHP code.
This is my second year in online. First time i was tried to learn ASP & that is a good web programming. But when i come for tried it in Internet, I see it is really heavy pricey. On the other hand I can use thousand of hosting provider who can serve me his product for free.
Has anyone else noticed how fast google index's .asp pages though? I tested this by creating a 5k page site from .asp and then the same thing using .html extensions, and the .asp got 4k pages indexed by the time the .html version had only about 80 pages... I'd recommend .asp...
It is normally the other way round as search engines dont like ? parameters - the file extention however is irrelevant from a technical point of view as you can program the server to treat any file extention as what ever you like. URL rewriting is done predominately to eleviate this issue. I would suggest that if one site was heavily indexed and the other lightly that there was some other reason for it other than the file extention (a common one is often that with dynamic pages and parameters that a single page can have many different urls - ie redundent parameters but the search engine may not recognise it as the identical page)
I don't even have the strength to begin to display all the reasons to choose .net over any other web language... but the word Generics should be enough. ASP (classic) PHP trumps ASP (classic) - but just because it's still supported .NET trumps and always will trump PHP GOD trumps .NET - but just because he is using .NET
PHP is the best if you know how to use it.. Not to mention that the perfect combination is PHP/MySQL on Linux making it completly free However you would not be able to build a website like the one in my signature using PHP.. Could you? So ASP.NET is good when you need it
I am confused by people saying to use PHP because it is free. .Net has Visual Web Developer Express which is free and includes a test server. Anyone with a copy of windows can install IIS for free Where is the cost of .Net? .Net can use MySQL as well as PHP can.
Yes, now VWDev Express is free but I think they are talking about the cost of hosting. You can get a lottttt cheaper php host than you would a windows box, and if you want a kick bum db (SQL Server, not express) that's a big cost. But... it's the best if you are willing to pay for it!
Pretty much every hosting company out there supports PHP, it runs on about any established operating system out there, it has the largest developer community (which makes finding help easier), lots of projects and libraries, and it's simple to learn and pervasive (you can write system scripts and other non-Web bits of code with it).
That statement has no merit. Did you post that simply to Microsoft bash? How will it contrain you? It is another technology that can be used for website development, both front and backend. Are you contrained by the fact that it will run on Windows only servers? Well DUH. Do we claim to be contrained that php/MySQL runs on Linux/Unix only? All my sites run on PHP/MySQL but I have been playing with the New .NET dev stuff that MS has brought out and have been quite impressed with it so far. Even though I am not that skilled programming-wise, I was able to build a simple CMS utilising a relationship-db interface that was intuitive. For the webmasters who do not know/want to program much, the PHP/MySQL platform is more than sufficient. For those webmasters who can program, the new ASP.NET stuff is quite powerful and should not be put on the wayside simply because it is fashionable to not like MS products.
It doesn't, PHP runs on Windows without any problem. The opposite however is not true... Personally I like that PHP is built like other open-source software : it relies on open-standards and blocks of other open-source software that are well documented and maintained, and not under the control of single company. I've no more issue with ASP belonging to Microsoft that any other environment belonging to Adobe, Apple, etc. I just like the idea that the tools my site is built with are not going to be pulled under my feet by some guy from the marketing department.