Connecting Tech Pros Worldwide Help | Site Map

Can you write to a text file with php?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:36 AM
Tino@tino.com
Guest
 
Posts: n/a
Default Can you write to a text file with php?

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, 01:36 AM
Jedi121
Guest
 
Posts: n/a
Default 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/

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.