Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 09-11-2005, 07:04 AM   #1 (permalink)
Newb Techie
 
Join Date: Jul 2005
Posts: 11
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   Reply With Quote
Old 09-11-2005, 10:35 AM   #2 (permalink)
Ultra Techie
 
Join Date: Oct 2003
Posts: 544
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   Reply With Quote
Reply

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



All times are GMT -5. The time now is 03:02 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0