Shadowing Posted December 2, 2011 Share Posted December 2, 2011 Im using XAMPP right now and im saving my scripts in htdocs but how do I tell my database to use files from a folder in htdocs so when i type in say http://localhost/index.php it will read it from htdocs/newfolder/index.php I appreciate any help on this. Link to comment https://forums.phpfreaks.com/topic/252326-how-to-change-where-i-save-my-scripts/ Share on other sites More sharing options...
QuickOldCar Posted December 2, 2011 Share Posted December 2, 2011 you could just visit http://localhost/newfolder/ it should read any index.html or index.php file you place within that folder the "but how do I tell my database to use files from a folder in htdocs" is a bit vague htdocs is your local filename which is the same location as http://localhost aka:the root of your site you could also include a script http://php.net/manual/en/function.include.php Link to comment https://forums.phpfreaks.com/topic/252326-how-to-change-where-i-save-my-scripts/#findComment-1293554 Share on other sites More sharing options...
Shadowing Posted December 2, 2011 Author Share Posted December 2, 2011 Thanks for the reply Thats wierd I tried doing that last week but that was when I was a even larger noob then I was now so there probably was another problem going on that I didnt realize back then lol. I just made the changes and it works fine in the folder i created. Link to comment https://forums.phpfreaks.com/topic/252326-how-to-change-where-i-save-my-scripts/#findComment-1293566 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.