RE: [PHP] remotely include file

From: Date: Wed, 09 May 2001 11:37:55 +0000
Subject: RE: [PHP] remotely include file
Groups: php.general 
Request: Send a blank email to php-general+get-52079@lists.php.net to get a copy of this message
When PHP does a require or an include on a remote file via http, it sends a GET request to the http server that the file is on, Therefore, if this server has PHP installed on it, then the web server will parse the file before it spits it out. Thus, all of the PHP tags are stripped fom the file for output. Therefore, you cannot remotely include (via http) a php file. If you could, this would be a massive security loophole. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: BenC@intasept.com Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK......"

« previous php.general (#52079) next »