Include problems
| From: | Shawn McKenzie | Date: | Fri, 02 May 2003 21:40:11 +0000 |
| Subject: | Include problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146207@lists.php.net to get a copy of this message | ||
Is there some PHP/Apache configuration setting or oddity with Solaris that
would cause this???
I have a script that works great for me and many others that gives the
following errors for one particular person:
Warning: Failed opening '/apps/myscript/script.cfg' for inclusion
(include_path='') in /apps/myscript/myscript.php on line 2
Warning: Failed opening '/apps/myscript/script.php' for inclusion
(include_path='') in /apps/myscript/myscript.php on line 3
/home/me/public_html/apps/myscript/myscript.php
<?php
include(dirname(__FILE__)."/script.cfg");
include(dirname(__FILE__)."/script.php");
some other working script...
?>
The script.cfg and script.php reside in the same dir as myscript.php. The
person has the following server stuff:
- SunOS backup 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-250
- Apache/1.3.26
- PHP 4.2.3
TIA
-Sawn