Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.