Re: automatic .phps creation

From: Date: Fri, 03 Nov 2000 23:00:03 +0000
Subject: Re: automatic .phps creation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23657@lists.php.net to get a copy of this message
showsource(); Also you can make a file that does something like this: <? // call with /view_source.html?file=index.php $foo = explode('.',$file); $filename = $foo[1]; $new_file_name = $filename.'.phps'; $ln = ln -s /path/to/$file /path/to/sources/$new_file_name; header("Location: http://server.com/sources/$new_file_name"); exit; ?> Put security measures in as well! --Joe On Fri, Nov 03, 2000 at 02:11:59PM -0500, John Dempsey wrote: > Is there an easy way to automatically produce .phps files that are > current? I guess you could do it with cron, or a perl script, but I just > wanted to see there was some function i didn't know about. > Much thanks! > Jack Dempsey > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net ================================================================================ = Joe Stump joestump98@yahoo.com http://www.miester.org = ================================================================================ "Real programmers don't comment their code. It was hard to write, it should be hard to understand."

« previous php.general (#23657) next »