Jump to content

Using Connect Files?


justlukeyou

Recommended Posts

Hi,

 

I have a script which uses a connect file but I am struggling to get files in other folders to read and for the "$loggedIn = checkLogin();" code to work.

 

If I connect to the database within the same script it works straight away.

 

If I change my password then I have to change every file but otherwise I cannot include the connect file as I have to link to it locally.

 

So if the connect file is in:

 

www.domain.co.uk/php/login/connect.php

 

then

 

www.domain.co.uk/php/login/index.php -- this works

 

www.domain.co.uk/php/logout.php -- this doesn't regardless of how I link to the connect file.

 

Link to comment
https://forums.phpfreaks.com/topic/230518-using-connect-files/
Share on other sites

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.