protect files and view temporary

From: Date: Mon, 15 Oct 2001 15:12:15 +0000
Subject: protect files and view temporary
Groups: php.general 
Request: Send a blank email to php-general+get-71111@lists.php.net to get a copy of this message
Hi! I am saving some xml-files on server with the extension .inc and use this script to view the files: <? if (file_exists("$filename".".inc")) { rename ("$filename".".inc", "$filename".".xml"); } Header("Location: http://www.myserver.com/".$filnamn.".xml"); } ?> Now I wonder how to rename the files back to .inc after I have viewed them, is it possible to do this in the same script with a timer or something? I have tried to include the .inc files instead of renameing them but PHP seams not to handle xml with xsl stylesheets for direct output to browser. Thanks for any help. Regards Jan Jan Grafström Lillemanshus AB Sweden

« previous php.general (#71111) next »