note 26938 deleted from ref.outcontrol by nlopess

From: Date: Mon, 05 Jan 2004 16:03:22 +0000
Subject: note 26938 deleted from ref.outcontrol by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62956@lists.php.net to get a copy of this message
Note Submitter: ---- Wouldn't this be easier? $sf = fopen($sourcefile, "r"); $df = fopen($destfile, "w"); ob_start(); while( !feof($sf) ) { $line = fgets($sf, 4096); eval("$line = \"".addslashes($line)."\";"); fputs($df, stripslashes($line)); } ob_end_clean();

« previous php.notes (#62956) next »