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

PHP

PHP is an open source scripting language that you can used in HTML pages. Pages created with PHP code are delivered after being decoded by the server. Pages with PHP code will work only if your Web server has the applicable version of PHP. The version of PHP needed depends on the code you write. Many applications use PHP code. For example, blogs use PHP code to add blog posts to a database and to display them in the blog visitor's browser. If you're working with PHP code, the only way to test the code is to upload the page to a server or to install a Web server with PHP. Pages with PHP code have a file extension of .php.

The beauty of PHP code is that a visitor doesn't need any special plug‐in to evaluate the PHP code; it's all done with PHP software on the server. When you create PHP code (shown in Figure 8-3 ), you will be seeing red. Literally. When you write PHP code in an HTML editor such as Dreamweaver, the code is preceded by <?php, and the text is red in color. (Okay, you can't see the red in this black‐and‐white book.)

Figure 8-3: Talkin' ’bout my pu..pu..pu..pu.. PHP.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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