What is this PHP exactly?<

liunx

Guest
I am curious about this PHP stuff. I see some webpages that are labeled whatever.PHP instead of whatever.HTML

Is PHP a completely different language than HTML?

What is this PHP exactly?

<edit>Is there anyone in here??????</edit>PHP is a server side language. Meaning it gets parsed by the server, and you can't view it when you do a view source. It is a different language than html, but it also can't do the same thing as html. With hmtl you have the img tag for images, you can change fonts, position things, etc. PHP adds more dynamic content and things like that.
More info on php can be located at:

<!-- w --><a class="postlink" href="http://www.php.net">www.php.net</a><!-- w -->
<!-- w --><a class="postlink" href="http://www.w3schools.comphp">www.w3schools.comphp</a><!-- w --> is a king of scripting done server side and it output html!

you can do query on a database and a bunch of stuff that the user will not see, the user will only see the final html that php produce...

easy ex:
<?php echo date('F j, Y'); ?>

will output the current date
"January 17, 2004"
that you can use in normal html file (name .php)!
 
Back
Top