Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Generating txt files with php ?
Closed Thread
Old 09-11-2005, 08:04 AM   #1 (permalink)
 
Newb Techie

Join Date: Jul 2005

Posts: 11

pierreba

Default Generating txt files with php ?

Hello,

Is there any way that php can generate a .txt file ?

If not, is there any other language or way ?

Thank you in advance.
pierreba is offline  
Old 09-11-2005, 11:35 AM   #2 (permalink)
 
Ultra Techie

Join Date: Oct 2003

Posts: 544

fitzjj

Default

Yep, hit www.php.net and look at the fwrite(), fopen() functions. Theese will do everything you need to do. It will be a case of telling it to write to a file but if the file does not exist then create it.

Remember to chmod any text file to give it the correct permissions otherwise reading and writing to it wont happen.
fitzjj is offline  
 
Closed Thread

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On