Jump to content
The Uniform Server Community

php require_once does not work correctly!


camelian77
 Share

Recommended Posts

Hi all,

 

I'm very new to Coral. Just moved my total scripts from Linux to Windows over UniServer and this is my problem.

 

I have this one file `config.php` which stores my configuration.

 

 

This won't work in any other file:


require_once 'classes/config.php'; 

 

but this one does:

 


require_once 'C:\Uniserver\www\classes\config.php'; 

 

Could you help on this please. It is VERY impractical for me to change all of my scripts. Thanks!

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
 Share

×
×
  • Create New...