Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help: failed to open stream 3

Status
Not open for further replies.

farley99

MIS
Joined
Feb 12, 2003
Messages
413
Location
US
Need help with modern bill
i get........

I am trying to install modern bill but when i goto
Warning: main(include/config/config.locale.php): failed to open stream: No such file or directory in /home/terry/public_html/include/functions.inc.php on line 83

Warning: main(): Failed opening 'include/config/config.locale.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/terry/public_html/include/functions.inc.php on line 83

Warning: main(include/config/config.servers.php): failed to open stream: No such file or directory in /home/terry/public_html/include/functions.inc.php on line 84

Warning: main(): Failed opening 'include/config/config.servers.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/terry/public_html/include/functions.inc.php on line 84

Warning: main(include/misc/heart/auth.inc.php): failed to open stream: No such file or directory in /home/terry/public_html/include/functions.inc.php on line 85

Warning: main(): Failed opening 'include/misc/heart/auth.inc.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/terry/public_html/include/functions.inc.php on line 85

Warning: main(include/config/config.main.php): failed to open stream: No such file or directory in /home/terry/public_html/include/functions.inc.php on line 86

Warning: main(): Failed opening 'include/config/config.main.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/terry/public_html/include/functions.inc.php on line 86

Warning: main(include/config/config.version.php): failed to open stream: No such file or directory in /home/terry/public_html/include/functions.inc.php on line 87

Warning: main(): Failed opening 'include/config/config.version.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/terry/public_html/include/functions.inc.php on line 87

Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at /home/terry/public_html/include/functions.inc.php:83) in /home/terry/public_html/include/functions.inc.php on line 100

Warning: main(include/translations/.trans.inc.php): failed to open stream: No such file or directory in /home/terry/public_html/include/functions.inc.php on line 102

Warning: main(): Failed opening 'include/translations/.trans.inc.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/terry/public_html/include/functions.inc.php on line 102
1046: No Database Selected

Got any tips?
 
Try adding . to your [tt]include_path[/tt] so it would end up looking something like [tt].:/usr/local/lib/php:/usr/lib/php[/tt].

//Daniel
 
I had that....
include_path = ".:/usr/lib/php:/usr/local/lib/php" ;

Do you know of anything else it might be?

Thanks in advance.
 
Where did you have that? In [tt]php.ini[/tt]? Did you restart the webserver?

//Daniel
 
I usually specify the full path from the file server root as to avoid any inclusion errors like the ones described here.
 
That limits mobility a bit though... if you're going to do that, I'd suggest at least using a variable for the parts of the path which may change depending on the host.

-Rob
 
It was in
/usr/local/lib/php.ini

I tried restarting the web server

what else should I be looking for?

Thanks in advance.
 
Maybe putting a / at the beginning of your path.

Maybe the permissions on the file.
 
Using absolute paths as I recommended is of course based upon a configuration directive that makes it easy to move the scripts to a different location.

;)
 
>>Maybe putting a / at the beginning of your path.

This?
include_path = "/.:/usr/lib/php:/usr/local/lib/php" ;

 
no, in your script I meant... but before taking such willy nilly debugging advice...

Have you set it up so that you can get any includes to work? Have you done some testing to try and figure out where you are when you're looking for your includes?

Just for giggles, mayhaps make a script which does...

Code:
<?php
echo &quot;<pre>&quot;;
passthru(&quot;ls&quot;);
?>

That will give you a clue where you're actually looking for your includes, and you can modify your scripts as necessary... what's likely happening is your relative paths are off a level or two.

-Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top