Greenie Posted October 11, 2006 Share Posted October 11, 2006 Hey all,I assume this is incredibly easy because it didn't warrant a mention in the FAQs and I couldn't even find any topics on the board when I ran a search for phrases like "how view php my file." I've the Apache server installed, Dreamweaver open and a whole bunch of tutorials open . . . so now what? How do I actually view the files I write? Greenie. Quote Link to comment https://forums.phpfreaks.com/topic/23634-how-do-i-view-my-php-files/ Share on other sites More sharing options...
realjumper Posted October 11, 2006 Share Posted October 11, 2006 Depending on your configuration of Apache....you browse to you files via a browser. On my Windoze machine my address is http://localhost/my_file.php. When I type that into the browser and hit Enter, I see 'my_file.php'. It's the same as on a live webhosting company.....many require you to place your files in the 'www' directory. Assuming that you do as they require, you see your pages (files) by typing www.your_url.com into your browser. Hope that helps? Quote Link to comment https://forums.phpfreaks.com/topic/23634-how-do-i-view-my-php-files/#findComment-107284 Share on other sites More sharing options...
Greenie Posted October 11, 2006 Author Share Posted October 11, 2006 Thanks for the reply, realjumper.It's as I thought, but it doesn't seem to be working. Where is this 'www' directory? Quote Link to comment https://forums.phpfreaks.com/topic/23634-how-do-i-view-my-php-files/#findComment-107291 Share on other sites More sharing options...
wildteen88 Posted October 11, 2006 Share Posted October 11, 2006 If youre using Apache then it'll be the htdocs directory not www, which will be located in C:\server\Apache2\htdocs\ (if you followed my tutorial that I link to in your earlier thread). If you didnt follow it then by default it'll be located in C:\Program Files\Apache Group\Apache2\htdocsThere'll be some demo html files in that folder. Delete all files in the htdocs folder. Now add your files and folders to that folder. Go to http://localhost/ and you should see your files/folders you just placed in the htdocs folder, or your index file will be shown. Quote Link to comment https://forums.phpfreaks.com/topic/23634-how-do-i-view-my-php-files/#findComment-107405 Share on other sites More sharing options...
Greenie Posted October 12, 2006 Author Share Posted October 12, 2006 Once again, thanks wildteen.Everythings working. I'm still surprised that no-one else has ever posted about this. Or, if they have, the forum's search tool hasn't picked them up. I even ran a Google search that turned up nothing of use. I suppose it was a case of common sense.Thanks for all your help wildteen and realjumper with getting me up and running,Greenie. ;) Quote Link to comment https://forums.phpfreaks.com/topic/23634-how-do-i-view-my-php-files/#findComment-107759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.