RDavis1002 Posted October 12, 2007 Share Posted October 12, 2007 need help.... ob_flush(); flush(); foreach($fileList as $file) { if(ereg("tar$", $file)) { $tarfile = new Archive_Tar(LOCAL_WORKING_DIR . $file); $tarfile->extract(LOCAL_WORKING_DIR); //or die("Could not extract files from " . LOCAL_WORKING_DIR . $file); echo "Succesfully unacked " . $file . "<br>\n"; ob_flush(); flush(); } else if(ereg("gz$", $file)) { $handle = fopen(LOCAL_WORKING_DIR . substr($file, 0, -3), "w+"); $lines = gzfile(LOCAL_WORKING_DIR . $file); foreach ($lines as $line) { fwrite($handle, $line); } fclose($handle); echo "Succesfully unacked " . $file . "<br>\n"; ob_flush(); flush(); } } Quote Link to comment https://forums.phpfreaks.com/topic/72981-warning-fopentempfeaturestxt-functionfopen-failed-to-open-stream-per/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.