Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

1. PHP: What, Why, and Where? > Running Your Second Program

Running Your Second Program

You’ve got your HTML and CSS in the right place, and your HTML form has your PHP program set as its action. You also should have sayHelloWeb.php in your ch01/scripts/ directory. All that’s left is to take your PHP for a spin. Open up a web browser and go to your web server, and then add ch01/sayHello.html to your server name. You should see the HTML you created in sayHello.html, just like in Figure 1-18.

The HTML and PHP files you created are specific to this chapter, so they belong in ch01/. But phpMM.css is for all the book’s examples you’ll be building, so put it in css/ under the root of your web server.

Figure 1-17. The HTML and PHP files you created are specific to this chapter, so they belong in ch01/. But phpMM.css is for all the book’s examples you’ll be building, so put it in css/ under the root of your web server.

More often than not, you’ll access an HTML page rather than a PHP program directly. But those HTML pages will use your PHP programs to generate responses to your users’ requests.

Figure 1-18. More often than not, you’ll access an HTML page rather than a PHP program directly. But those HTML pages will use your PHP programs to generate responses to your users’ requests.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial