ID: 20616 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Scripting Engine problem Operating System: Win 2k server PHP Version: 4.3.0RC1 New Comment:
while testing a third party script that does: require_once("db/foo.php"); i got an error reporting 'No such file or directory'. Being under Win OS, i checked to see if require_once("db\\foo.php"); would work. And it DOES! Previous Comments: ------------------------------------------------------------------------ [2002-12-09 07:50:01] [EMAIL PROTECTED] I juste tested the latest stable snapshot (http://snaps.php.net/win32/php4-win32-STABLE-latest.zip) and could not reproduce the problem using CLI or Apache modules. If the problem existed it was fixed since RC1. ------------------------------------------------------------------------ [2002-12-09 05:31:49] [EMAIL PROTECTED] Black, I'm simply calling ../application.php from admin/index.php, there's nothing else involved. This particular piece of code works fine in 4.2.3 ------------------------------------------------------------------------ [2002-12-09 05:14:15] [EMAIL PROTECTED] could you list the directory structure of "used" files.. im mainly interested in the main script, admin/index.php and application.php. if the main script is in the same dir as application.php and includes admin/index.php, then the problem most probablly lies there, since the include path doesnt change from the main script to its includes.. other than that try downgrading to 4.2.3 just to see if the problem remains - if yes, then its a script error in your code and not in php4.3RC2 itself. ------------------------------------------------------------------------ [2002-12-09 02:10:12] [EMAIL PROTECTED] Nope. application.php is in the parent directory, or: C:\Xitami\webpages\Commerce\mymarket1\application.php ------------------------------------------------------------------------ [2002-12-08 22:37:24] [EMAIL PROTECTED] Some clarification needed..the error you got: "No such file or directory in C:\Xitami\webpages\Commerce\mymarket1\admin\index.php on line 8 Warning: Failed opening '../application.php' for inclusion" In index.php you have 'include("../application.php");' ? Is the path to "application.php": C:\Xitami\webpages\Commerce\mymarket1\admin\application.php ??? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20616 -- Edit this bug report at http://bugs.php.net/?id=20616&edit=1