On Sunday 01 December 2002 22:36, Andy wrote: > OK, so I have located the httpd.config file but still no joy, I know it is > something very simple and silly. > I will explain in detail what I have done, I think this will give a better > idea of where I am going wrong. > > Loaded Apache from the CD first in its default location c:/program > files/apachegroup/apache/htdocs.
This looks like the location where the files for your website should be placed. As a previous poster commented below, this location is specified by the DocumentRoot directive in httpd.conf > I was then told to write the following code in my webspace, Presumably by "webspace" they mean the above location. > so i used > Dreamweaver MX, then tried Notepad: > <html> etc etc <body><p>This is a HTML line </p> > <?php echo "This is a PHP line"; phpinfo(); ?> > </body> > I save the file and go to view it in Explorer but i see just the html text > not the php? Well move your file to the above location and try: http://localhost/name_of_your_file.php > Now what i cannot understand is, am i saving the php files in the right > place (if there is one?) and should i be running the browser as localhost > which see's the apache page ok when i type http://localhost/ into the > address bar. That proves apache is running OK. If you're still having trouble locating your DocumentRoot, try searching for these file: index.html.ca index.html.cz index.html.de index.html.dk index.html.ee index.html.el index.html.en All these files (and more) are found in the DocumentRoot directory of a standard Apache installation. Those index.html.* are the Apache welcome page in various languages. > > Yes, Phil has it. I'd assumed this, I should not have. The directory is > > given by the "DocumentRoot" line in httpd.conf. You did not say exectly > > what error you were getting, I'd assumed that you were just seeing the > > source of your file and that the only problem was php not parsing it. > > Presumably you were getting "Document not found" errors? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The following statement is not true. The previous statement is true. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php