error in php

error in php

Posted by: clr4appr
Posted on: 2009-10-10 04:36:00

I keep getting this error though the file is there. Also on another of my sites I set up using the same script all works fine. Any suggestions?

usernamehere/domainnamehere.com have inserted in replace of actual names.

Warning: require(../../log.php) [function.require]: failed to open stream: No such file or directory in /home/usernamehere/domainnamehere.com/MemberOL/memonly.php on line 4

Re: error in php

Posted by: Atropos7
Posted on: 2009-10-10 07:39:00

In reply to:

I keep getting this error though the file is there. Also on another of my sites I set up using the same script all works fine. Any suggestions?

Warning: require(../../log.php) [function.require]: failed to open stream: No such file or directory in /home/usernamehere/domainnamehere.com/MemberOL/memonly.php on line 4


Well if we read the error message, we see that it is looking for a log.php file in a particular spot and did not find it there. So one suggestion would be to check if the log.php file is in the right spot and has correct permissions.




Customer since 2000 cool openvein.org

Re: error in php

Posted by: sXi
Posted on: 2009-10-10 07:42:00

You're backing out of the domain into your $HOME directory, so use full paths.

include '/home/user/log.php';




How To Install PHP.INI / ionCube on DreamHost

Re: error in php

Posted by: clr4appr
Posted on: 2009-10-10 14:39:00

Yes, I verified the log.php & login.php are in root and the memonly.php is in correct folder as well. I took this script from another site I am using that is work on. If I change the log.php to look for the old memonly.htm (which is in the same folder as the memonly.php) it works but then page is viewable without having to login.

Data base is working, verified permissions are same as on working site, and full paths are being used.

Edited by clr4appr on 10/10/09 02:46 PM (server time).

Re: error in php

Posted by: sXi
Posted on: 2009-10-10 15:00:00

In reply to:

Warning: require(../../log.php)


Path appears to be relative.




How To Install PHP.INI / ionCube on DreamHost