#33548 [Bgs]: php can't use relative path with iis6 and windows 2003

From: Date: Sat, 02 Jul 2005 15:06:45 +0000
Subject: #33548 [Bgs]: php can't use relative path with iis6 and windows 2003
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81304@lists.php.net to get a copy of this message
ID: 33548 User updated by: bigfaucet at yahoo dot com dot cn Reported By: bigfaucet at yahoo dot com dot cn Status: Bogus Bug Type: IIS related Operating System: windows 2003 server PHP Version: 4.3.10 New Comment: It seems while disabled ISAPI caching, "require" can use relative path. but file function still not work. the most simply test is like this DOCROOT | |-a.php |-b.php a.php ----- <?php $i = 1; echo $i; ?> b.php ----- <?php file("a.php"); ?> error_reporting's warning is on. where visit b.php Warning: file(a.php): failed to open stream: No such file or directory in D:\www\webroot\b.php on line 2 Previous Comments: ------------------------------------------------------------------------ [2005-07-02 15:44:20] sniper@php.net Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See bug #27891 ------------------------------------------------------------------------ [2005-07-02 15:11:05] bigfaucet at yahoo dot com dot cn the code course the errors include require('./include/common.php'); fopen("include/config.inc.php"); ... ------------------------------------------------------------------------ [2005-07-02 15:06:32] bigfaucet at yahoo dot com dot cn Description: ------------ While use relative path in php files, report error like this Warning: main(./include/common.php): failed to open stream: No such file or directory in D:\www\bbs\index.php on line 19 when change to absolute path, works fine. It happens where change server from windows 2000 server to windows 2003 server and iis5 to iis6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33548&edit=1

« previous php.bugs (#81304) next »