The PHP4 Scripting Language

For JavaScript users, PHP is an excellent transition language to server-side scripting. Now in Version 4 (or PHP4), PHP is officially named PHP Hypertext Preprocessor. The language was developed in 1994 by Rasmus Lerdorf as a server language for his “Personal Home Page,” so he called it PHP. It is now a program scripting language with many similarities to JavaScript, so you should find it relatively simple to master.

PHP generally runs as a mix of HTML and PHP. PHP files are saved in the web server’s root directory with the .php extension. The root directory varies with the setup of your system. If you are using your hosting service account, put your files into the root folder, and use your domain name as the root. ...

Get JavaScript Design now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.