Jump to content

How to change where i save my Scripts


Shadowing

Recommended Posts

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

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.