Thirteen Years of Service
Posts: 969
Threads: 142
Can someone explain me what php is? 08-26-2011, 04:29 PM
#1
While surfing online, I've seen addresses ending with something like "index.php". But I have very less idea about what they could be. Can someone help me understand what it is and what its use is?
•
Thirteen Years of Service
Posts: 7
Threads: 1
RE: Can someone explain me what php is? 08-26-2011, 09:01 PM
#3
PHP: Hypertext Preprocessor
PHP is a scripting language that returns values before the webpage is served to the user. The server processes the PHP, not the client.
For example, lets say you have a page where you want to return random values between 1 and 10. If you were to use just HTML, this would be impossible, as HTML is a static language, which basically means what you give is what you get. But with PHP, this is very easy.
Take the following example ~ this is a .php file
<!DOCTYPE html>
<html>
<head>
<title>Example of a random number</title>
</head>
<body>
<p>Your random number is <?PHP echo mt_rand(1, 10) ?>!</p>
</body>
</html>
•
Thirteen Years of Service
Posts: 969
Threads: 142
RE: Can someone explain me what php is? 08-26-2011, 11:44 PM
#4
I guess i get what it is now.. Thank you sirs..
•
Thirteen Years of Service
Posts: 209
Threads: 40
RE: Can someone explain me what php is? 08-31-2011, 11:12 AM
#6
What is PHP?
PHP is a redundant acronym that stands for PHP Hypertext Preprocessor. It initially stood for Personal Home Page but was changed to fit in with a somewhat standard naming convention of Open Source projects to have a redundant acronym.
Who manages PHP?
PHP is developed and managed by Zend Technologies.
History
PHP was initially a compilation of Perl scripts to do basic web tasks in a CGI. This was created by Rasmus Lerdorf.
PHP3 was developed by Andi Gutmans and Zeev Surawski. They began a complete rewrite and founded Zend as a result of this release.
What does PHP do?
PHP, as the name states, is a hypertext preprocessor. Hypertext, as in HyperText Markup Language (HTML), is taken and preprocessed, processed server side before sent to the client who will process it again to render a web page.
Esentially it is a programming language that is designed with the intent to ease web development and take it to the next level by allowing for dynamic content. Since its initial design it has undergone massive modifications over the years and can be used to for shell scripting or even massive applications.
Source
I cannot guarantee 100% accuracy of this information because it came completely off the top of my head.
•