Need some help
Posted: Thu Jul 20, 2006 6:25 pm
What I'm trying to do is after the file is created in the following script, I want to open another page and pass it a few variables. I don't know how to do that.
if($_SERVER['REQUEST_METHOD'] == 'POST') {
if(isset($_REQUEST['getfile']) && count($_SESSION['binary']) > 0) {
$str = $fileclass->genfile($_SESSION['binary']);
$newfile = "/files/myfile.nnn";
$fh = fopen($newfile, 'w') or die("Can't open file");
fwrite($fh, $str);
fclose($fh);
exit;
}
}