Hello Folks,
I'm trying to write the output of an inc file
to a file.
To browser, there's no problem, because the code is interpreted.
But I can't output it to a file...
I'm using a code like this:
summary.php3:
$imgs_dir = $myrow[3]
//$imgs_dir from a mysql result
swicth ($action):
case tobrowser:
include("return.inc")
break;
case tohtmlfile:
$master="include('return.inc')";
$filename = "html/file1.html";
$fd = fopen ($filename, "w");
fwrite($fd,$master);
fclose ($fd);
break;
endswicth;
return.inc:
IMGS DIR: <? echo $imgs_dir;?>
QUERY STRING: $QUERY_STRING
Any one can help me??
Thank you!
Egidio