This configure script utilizes the Apache SAPI extension

to place the test script into your virtual host s document root; otherwise you will place it into the default document root. We re going to assume that you did not configure any virtual hosts and so will place the test script into /www/htdocs for the default document root. Follow these steps: 1.Make a file located at /www/htdocs/info.php and add the following contents to it: 2.Additionally, you can follow the trend of creating a Hello World script such as /www/ htdocs/hello.php with the following contents: 3.Access these scripts in your web browser by going to the web address of the script and check the output. The output of our phpinfo() function is depicted in Figure 10.1. The output for the Hello World script would simply be the text Hello World, PHP Rocks! FIGURE 10.1 phpinfo() function output4337Book.

Note: If you are looking for good and affordable webspace to host and run your servlet application check Virtualwebstudio servlet hosting services

Comments are closed.