PHP 4.0 Bug #4812 Updated: include()'d files do not know about variables if called with an absolute url

From: Date: Fri, 09 Jun 2000 15:51:19 +0000
Subject: PHP 4.0 Bug #4812 Updated: include()'d files do not know about variables if called with an absolute url
Groups: php.dev 
Request: Send a blank email to php-dev+get-20776@lists.php.net to get a copy of this message
ID: 4812 Updated by: zeev Reported By: abaddon@unwesen.com Status: Closed Bug Type: Misbehaving function Assigned To: Comments: When you include() a file using HTTP, chances are the PHP code is executed on the server side. This means that the data include() receives is not the PHP source code, but rather, the output from the execution of the code on the server side. Obviously, variables that are locally defined aren't sent over HTTP automatically. You really shouldn't include PHP source code files over HTTP, unless you have a very good grasp of what you're doing. Full Bug description available at: http://bugs.php.net/version4/?id=4812

« previous php.dev (#20776) next »