Connecting Tech Pros Worldwide Help | Site Map

Can you write to a text file with php?

Tino@tino.com
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi,

Is it possible to have a php script that creates a text file on it's
host server... something like a print to file or write to file?

What I want to do is have a php script that creates a html file rather
than just echoing text to the screen.

thanks


Jedi121
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Can you write to a text file with php?


"Tino@tino.com" a écrit le 12/12/2003 :[color=blue]
> Hi,
>
> Is it possible to have a php script that creates a text file on it's
> host server... something like a print to file or write to file?
>
> What I want to do is have a php script that creates a html file rather
> than just echoing text to the screen.
>
> thanks[/color]

RTFM... see signature.
fwrite() is your friend

--
Have you read the manual?
http://www.php.net/manual/en/

Closed Thread