Connecting Tech Pros Worldwide Help | Site Map

Can you write to a text file with php?

  #1  
Old July 17th, 2005, 02:36 AM
Tino@tino.com
Guest
 
Posts: n/a
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


  #2  
Old July 17th, 2005, 02:36 AM
Jedi121
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP fails writing to text file? Gilles Ganault answers 4 January 16th, 2008 01:15 PM
Save PHP variables to a text file Lamer answers 11 October 1st, 2007 02:15 PM
Can't Write Text File Google Mike answers 4 July 17th, 2005 07:54 AM
how to clear a .txt file with php Jan answers 2 July 17th, 2005 02:45 AM