Bug #13600 Updated: problem with the require function

From: Date: Tue, 09 Oct 2001 07:51:12 +0000
Subject: Bug #13600 Updated: problem with the require function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67582@lists.php.net to get a copy of this message
ID: 13600 User updated by: stefan.cano@virtualxs.com Reported By: stefan.cano@virtualxs.com Old Status: Feedback Status: Open Bug Type: Scripting Engine problem Operating System: w2k PHP Version: 4.0.6 New Comment: This script doesn't work, it results in error: <?php require("http://localhost/test.php"); ?> The follow error is generated: Fatal error: Failed opening required 'http://localhost/test.php' (include_path='.;c:\php;c:\php\includes') in c:\inetpub\wwwroot\live3.php on line 2 When I enter the URL http://localhost/test.php in my browser directly it works. When I use the following script it works: <?php require("c:/inetpub/wwwroot/test.php"); ?> I checked all rights withing IIS and these are ok. PHP.ini is configured with defaults. Previous Comments: ------------------------------------------------------------------------ [2001-10-08 13:02:33] mfischer@php.net What is 'does not work' ? Be more descriptive, paste error messages, etc. - Markus ------------------------------------------------------------------------ [2001-10-08 12:17:30] stefan.cano@virtualxs.com This script doesn't work. <?php require("http://localhost/test.php"); ?> When I enter the URL http://localhost/test.php in my browser directly it works. When I use the following script it works: <?php require("c:/inetpub/wwwroot/test.php"); ?> I checked all rights withing IIS and these are ok. PHP.ini is configured with defaults. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13600&edit=1

« previous php.dev (#67582) next »