If you installed on a Windows box, your "public_html" directory mentioned above may be "htdocs". Or, in my case, ours is installed in c:\server\apache2\htdocs
Our test sites are named folders within htdocs.
So, like mastercomputers mentioned, store them in your apache directory, then view them in your browser as mentioned. In our case: http://localhost/test_site1/index.php
You can make a info.php file and drop it into your root directory. Then view it in your browser to see if you have php installed and working correctly.
Also, are you typing in the full path? IE: http://localhost/file.php or are you typing in only the directory (expecting the index.php file to display automatically). If you're doing the second, and file is not showing, you'll need to add that extension to your apache configs. And/Or remove the index.html file that is in the path you're trying to view.
__________________
Please login or register to view this content. Registration is FREE - Computer Repair over the internet!
|