Question:
why PHP??pleese help!!!!?
1970-01-01 00:00:00 UTC
why PHP??pleese help!!!!?
Four answers:
dazabas
2012-06-03 21:33:18 UTC
PHP is flexible in that it doesn't have a lot of rules, its a little "anything goes", anybody can start making PHP websites in a few hours, you can make horribly coded "spaghetti code" without design or apply object oriented design patterns to your program. Obviously horrible programs can be written in any language!



Its preferred on the web because it is *everywhere* on the web, its a bit chicken and egg, PHP has been around longer than a lot of the other languages people use on the web, I don't remember clearly from my readings, but only Perl was available before PHP to make any sort of dynamic content on the Web way back when, Microsoft's ActiveSeverPages and JAVA's JavaServer Pages weren't even around when PHP started. Even then, a PHP environment is free, light and super easy to setup, and it was open source, before it was hip to be open source.



Is it worthwhile to learn PHP, yes, its very useful on the web, should it be the only language you know? Definitely NOT! You'll be a better programmer if you know additional ones, you'll grok why some look down on PHP as a language as you pickup say a language like C, you yourself may even look down on it, seems like you already do? But its hard for me to do that, it lets you get stuff done so easily and quickly.
Ratchetr
2012-06-03 20:46:36 UTC
The psychology of crowds, I suppose.



PHP is a rather horrid programming language, but lots of people pick it up and learn it because it is somewhat easier to learn than some of the alternatives, and it is *free*, and lots of free hosting sites support it.



PHP originally stood for "Personal Home Page", and that mental framework still seems to drive the PHP community. The focus seems to be on getting it done quick and easy, rather than *RIGHT*. Things like security or database efficiency don't seem to concern the typical PHP programmer. They just want to make it work.



Not that you can't write a secure site with decent performance in PHP, it certainly can be done. But the language and community doesn't really encourage that.



There are much better solutions out there than PHP.
anand
2012-06-03 20:42:57 UTC
PHP is very easy to learn and covers all aspects of a programming language.

If you know Little bit HTMl and mysql queries, it is very easy to setup an environment and start doing your code.
2012-06-03 21:53:09 UTC
PHP runs very efficiently, even on small hardware footprints, is tightly integrated with the web server, and is better suited for agile development by amateurs.it is open source A large and extensive support for the regular expressions that are used heavily for matching patterns and substitutions. You can perform a variety of string related tasks like compression, manipulations, etc.

d. Support for the Raw HTTP headers that are frequently used in redirections, authentications and other high level site designs.



for further information on why php is better read this

http://whatwhy.in/technology/why-is-php-better-than-other-programming-languages/221/



n the reason why it is used for web applicatin development

PHP is a language that is specifically designed for web programming with built-in integration with the most popular open source database MySQL.



Easy to start with: As a beginner it is easy to start with PHP. The user just have to add a few PHP-tags with e.g. a for-loop in it's existing HTML-files and then upload it to the server and see the result or an error message. Dynamic typing and associative arrays makes it also easier to start using PHP.



Easy to use: Compared to most solutions like e.g. Java, PHP doesn't need to be compiled, so it's just to write the script and then upload it to the server and then update the browser.



Integrated database support: PHP has (mostly) built-in support for the most popular databases like e.g. MySQL, that means it is easy to start using databases, no additional drivers needs to be installed, just to use the mysql-functions. The easy to use web based admin tool PHPMyAdmin (released 1998) is also important to the PHP's success in combination with MySQL.



Old language (since 1995) with a big user base: PHP became popular early (1995) since it was designed for web programming. Since then the user base has grown and now there is many web-oriented frameworks and libraries available. Some examples are blogg-systems and e-shopping-platforms.



Cheap hosting: Since PHP has existed for long time and works good on both Linux and Windows, and many webservers have support for it. There is no problem to find hosting with PHP pre-installed.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...