Jump to content

Path issue on remote server


Go to solution Solved by Barand,

Recommended Posts

I'm getting the error below when I run my script on my remote server.  I'm providing a relative path to this file and it works on my local server (XAMPP).  I've researched it a bit and I think it has to do with how I indicate the path to the file on the remote server.  I don't know what to do about it, however.  I hope someone can help me.  The file is in the indicated directory on the remote server and there are no permissions issues that I am aware of.  The mystery phrase is:

include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear'

 

--Kenoli

Warning: require(bootstrap/start.php): failed to open stream: No such file or directory in /home4/ournight/public_html/tio-new/__classes/pi_admin.php on line 3
Warning: require(bootstrap/start.php): failed to open stream: No such file or directory in /home4/ournight/public_html/tio-new/__classes/pi_admin.php on line 3
Fatal error: require(): Failed opening required 'bootstrap/start.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home4/ournight/public_html/tio-new/__classes/pi_admin.php on line 3

 

Link to comment
https://forums.phpfreaks.com/topic/312396-path-issue-on-remote-server/
Share on other sites

That means it is passing 2 paths. The dot (.) is the current directory and the 2nd is an absolute path in /opt. I guess we need to see how that variable is used but I don't think it will work in a require statement.

Edited by gw1500se
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.