What is PHP in relation to HTML and CSS?

  • Thread starter Thread starter Rippybits
  • Start date Start date
R

Rippybits

Guest
I would like to know what php is, and what a "php server" is. Can you do php in a program like HTML-kit? Thanks for the help.
 
PHP can generate HTML content into the page from the PHP server before it even reaches the client (which is why it is called hypertext preprocessor). The PHP server is the computer/application that performs the PHP operations on the page. CSS can also be used for your style settings, but that's completely separate from PHP.
 
PHP stands for PHP: Hypertext Preprocessor. It's a preprocessing spript language, which means that unlike JavaScript or something, it runs the code on the server side of the web, not the users. When using PHP the user cannot see the code written in the Source of the web page.
A PHP server is a server or basically a web hosting service that supports the use of PHP. If they do not support it, it will not read the PHP.
I am not sure about whether or not you can do PHP in something like HTML Kit, but I highly doubt it; I know the high end web editors like DreamWeaver can, though.

Check this site out, it has a lot of turtorials on web design: http://www.w3schools.com/php/default.asp
 
.php is viewed the same way as .html, but if all your pages are .php you can add php code into it later, like redirects or something that requires a web application

php is meant for dynamic pages that take information from somewhere and process it and use it on a page in a certain way

for example a forum, php takes info from a database and shows you the active topics, bla bla bla, with only one .php file instead of hundreds of .html files
 
Back
Top