note 102731 modified in function.include by danbrown

From: Date: Wed, 02 Mar 2011 17:10:48 +0000
Subject: note 102731 modified in function.include by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177504@lists.php.net to get a copy of this message
Sometimes it will be usefull to include a string as a filename <?php //get content $cFile = file_get_contents('crypted.file'); //decrypt the content $content = decrypte($cFile); //include this include("data://text/plain;base64,".base64_encode($content)); //or include("data://text/plain,".urlencode($content)); ?> --was-- Sometimes it will be usefull to include a string as a filename <?php //get content $cFile = file_get_contents('crypted.file'); //decrypt the content $content = decrypte($cFile); //include this include("data://text/plain;base64,".base64_encode($content)); //or include("data://text/plain,".urlencode($content)); http://php.net/manual/en/function.include.php

« previous php.notes (#177504) next »