Re: Redirecting HTML output to FILE
[email protected] ("Kresimir Kondza") Fri, 29 Mar 2002 16:57:15 +0100
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
in this case you use file functions.
first you open a file with
$fp=fopen("local file adress","w"); // opens a file for writing
then you put some text into a var
$file_content="This is content of the file you are cretaing";
and then you print this to file
fputs($fp,$file_content);
and you close the file
fclose($fp);
that's it
"Paul Padilla" <[email protected]> wrote in message
news:[email protected]...
> How would one go about redirecting the result of an HTML page to a file
> in the webserver instead of the client's browser? I am trying to parse
> out information from an HTML result page using PHP but don't know which
> PHP syntax to use to redirect the HTML result into a file.
>
> Cheers,
> Paul
>