• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Using PHP with JavaScript > The PHP4 Scripting Language

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. (Do not put your PHP files in a cgi-bin directory.) For example, if your domain is www.newriders.com, and you save your PHP program in the root directory, you would enter this to call a PHP program:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint