What is Php?
1.
Setting things straight ...
PHP began life as "Personal Home Page" (Tools), and later the "Personal Home Page" (Construction Kit). Later it would be merged with an
FastForward to the present day and it's no longer a mere tool to handle generation of Personal Home Pages, reuiring a new acronym, some clever chap came up with:
"PHP: Hypertext Preprocessor"
Cunningly (or not), in the same vein as "GNU's not Unix" and "PINE Is Not Elm", PHP became a recursive acronym, whereby the first letter actually stands for the full acronym.
Deep, huh?
<? phpInfo() ?>
2.
Hypertext Preprocessor.
(Earlier Personal Home Page.)
A modern high-level server-side scripting language for the HTTP protocol (CGI.) An alternative to ASP, Perl, Python, TCL, etc.
PHP is claimed to be installed on 20% of the domains on the Internet, including the webserver that hosts slangdefine. The engine that keeps track of all the words and definitions is written in PHP. See php for more information.
Hello World in PHP:
<?php echo "Hello World!"; ?>
3.
(Personal Home Page) Hypertext Preprocessor. A server-side scripting language easilly competent to ASP or JSP. Avalaible on nearly every platform and server, PHP has been embraced by veteran programmers and (unfortunately) newbies alike as the programming language of choice for ad-hoc web processing.
Draws it's syntax structure mainly from c++ and perl, but has roots in java and sed as well.
Often heralded as "better than perl" by newbie code monkeys who've neither used perl nor have any idea that perl's scope of usability far exceeds that of PHP's, (which is reallistically limited to that of processing HTML and interfacing with databases). Ironically, the legions of newbies who are self-proclaimed "php mastaz" have no idea that PHP is frequently trampled in benchmark tests for Common Gateway Interface (CGI) and Database Interface (DBI) by languages like C, C++, Perl, Sed/Awk, and Python.
However, PHP is still the fastest ad-hoc server processing language out (and of course smashes A$P)
"The true power of PHP lies in integration with Perl and C, not in competition"
4.
PHP is a powerful web scripting language, famous for its ease of use and ability to interact seamlessly with SQL type databases. PHP takes a lot of its syntax from Perl and C++, and it is in this way that programmers familiar with these languages can pick up PHP rather easily.
Advantages: Can be much easier to read than Perl, arguably easier to learn
Disadvantages: Might teach sloppy programming habits (not having to define variables etc) and can be less compact than Perl.
<?php
if("PHP" > "Perl") {
//returns true :p
}
?>
See
5.
A server side scripting language that is commonly used to render web pages. It sounds like a drug so its cool to say things like "I did some PHP over the weekend" or "I got a good high of my PHP stash."
See
6.
Web programming language to make websites dynamic.
<?php // Begins php
print "string"; // Displays string
echo "sring"; // Displays string
$a="Left"; Defines variable a
if ($a==="Left") print "A equals Left"; /* If variable a equals Left then display A equals Left */
?>
See
7.
PHP is a server-side scripting language similar to Microsoft's Active Server Pages technology. It is easy to use, but exceptionally powerful and perhaps most importantly it was developed for the web. It outclasses older technology such as perl simply through it's ease of use and effectiveness.
<?php
if($php > $perl) {
echo "php is the greatest, obviously ;) ";
} else {
echo "php... is *still* the greatest! ";
}
?>