Question:
Can't fix this error in a script?
spydazweb
2009-02-23 20:20:44 UTC
I have this script I am testing out, but I am getting this error and can't figure out why.


Warning: require(/dblib.php) [function.require]: failed to open stream: No such file or directory in /home/myusername/public_html/*mysitedir.com/config.php on line 88

Fatal error: require() [function.require]: Failed opening required '/dblib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*myusername/public_html/*mysitedir.com/config.php on line 88

Keep in mind that "myusername" is my actual username in the script and "mysitedir.com" is my site directory. Any suggestions or does this script just plain suck?
Three answers:
anonymous
2009-02-23 20:30:28 UTC
dblib.php isn't where your script says it is, or that's not the correct name of the file. Don't depend on the include path of a remote server being correct - specify the file path starting with the server root.
PuzzleMe
2009-02-24 04:29:45 UTC
looks like it is the path issue
Nithya
2009-02-24 04:29:15 UTC
Remove the slash(/) in require(/dblib.php). It will work fine.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...