note 28472 modified in features.remote-files by vrana

From: Date: Tue, 17 Aug 2004 13:56:26 +0000
Subject: note 28472 modified in features.remote-files by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79768@lists.php.net to get a copy of this message
The easiest way I'd see around the security hold mentioned above would be to turn off allow_url_fopen, using ini_set. If that is not acceptable you can simply str_replace out the :// part that seperates the protocol from the address. <?php include( str_replace("://", "", $whatever) ); ?> should do the trick. --was-- The easiest way I'd see around the security hold mentioned above would be to turn off allow_url_fopen, using ini_set. If that is not acceptable you can simply str_replace out the :// part that seperates the protocol from the address. include( str_replace("://", "", $whatever) ); should do the trick. http://php.net/manual/en/features.remote-files.php

« previous php.notes (#79768) next »