note 45647 added to features.remote-files

From: Date: Tue, 14 Sep 2004 07:06:17 +0000
Subject: note 45647 added to features.remote-files
Groups: php.notes 
Request: Send a blank email to php-notes+get-76651@lists.php.net to get a copy of this message
The previous post is part right, part wrong. It's part right because it's true that the php script will run on the remote server, if it's capable of interpreting php scripts. You can see this by creating this script on a remote machine: <?php echo system("hostname"); ?> Then include that in a php file on your local machine. When you view it in a browser, you'll see the hostname of the remote machine. However, that does not mean there are no security worries here. Just try replacing the previous script with this one: <?php echo "<?php system(\"hostname\"); ?>"; ?> I'm guessing you can figure out what that's gonna do. So yes, remote includes can be a major security problem. ---- Manual Page -- http://www.php.net/manual/en/features.remote-files.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45647 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45647&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45647&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76651) next »