Jump to content
Larry Ullman's Book Forums

Configuration File In A Live Environment


Recommended Posts

Hi all,

I'm about to make a site live for the first time that includes a config file and a mysqli_connect script.

 

In Larry's examples of a config file he defines an absolute path to the mysqli login script. In local testing it's "C/blah/blah/etc." In live it will be http:// something. However Larry recommends that the mysqli script is kept outside of the main web directory. I've managed to do that on the hosting companies file structure but how do I write an absolute path to it. If it was in the same directory as say the home page it would be http://www.mywebsite.co.uk/mysqli_connect.php. But how do I write it so it's one directory 'up'?

 

Cheers

Paul

Link to comment
Share on other sites

One thing I just noticed, and this might save you some time.

When I go to cpanel, then filemanager, the menu at left shows my top level directory is /home/advice10.

Assuming, you have linux webhosting, probably yours shows you that information.

Link to comment
Share on other sites

 Share

×
×
  • Create New...