Well it's going well so far and I assume it's installed. And anyway I'm following a tutorial on how based on a book which I trust. Anyways it says the easist way to test it is to use the phpinfo() fuction and make it "the root document in the htdocs subdirectory of your apache installation (I did install apache and it works fine). I would like to know where the htdocs subdirectory is and what is the best way to go about this. I don't want any screw ups basically. If anyone could help I'd appreciate it. Thanks
06-02-2004, 05:53 AM
Assuming you have installed this on a windows system then you should find the htdocs folder in the Apache folder. I generally don't use the default root folder Apache sets so I don't recall exactly where it is in there.
As for testing using the phpinfo() function you can create a file such as test.php and then the only thing you need to put into that file would be:
And once you have everything running type into your browser:
http://localhost/test.php assuming you named it test. And once again I don't recall exactly the default configuration of Apache so it might be
If you are not wanting to learn how to install Apache/PHP/MySQL etc and you just want a development environment for testing your code then you might want to consider one of the many ready made development packages that have Apache/PHP/MySQL/Perl etc already bundled together and pre configured. All you need to do is install the bundle and it's all ready to go. Two I have used in the past are PHPDev which you can read more about in the sticky thread at the top of this forum and the other one is called IBServer which you can find with a quick search on google.
06-02-2004, 07:00 PM
Thanks you've been a big help.
06-02-2004, 11:10 PM
Eric go into the advanced section of IE (if you are using IE) and turn off friendly HTTP error messages. See if you are getting a code error. Code errors with this turned on come up as file not found or DNS errors.