Posted by Siegfreed on 02/07/07 07:50
rfhurley wrote:
> How do I run a .php program? (I'm starting with the "hello world"
> script)
>
You need to specify the document root (the directory that Apache will
look for files when asked to serve them) in your "httpd" configuration
file, which in turn is located in the "Conf" directory. The section
that control the "DocumentRoot" look like this:-
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
# Example:-
DocumentRoot "C:/my_chosen_php_directory"
Once you set up your "DocumentRoot", place the files you want to run in
there, and type:
http://localhost/your_file_name.php into a web browser; or
http://127.0.0.1/your_file_name.php into a web browser.
[Back to original message]
|