[PHP] writting to files

2002-05-31 Thread Jas
Ok, I have been working on this for awhile and cannot seem to get the fwrite function to work. Here is the code: \\ index.php ?php $file_name = 'blank.php'; $open_file = fopen($file_name,rw); if (!$open_file) { die(cannot open $file_name); } else { $read_file = fread($open_file,

Re: [PHP] writting to files

2002-05-31 Thread Jason Wong
On Saturday 01 June 2002 04:34, Jas wrote: Ok, I have been working on this for awhile and cannot seem to get the fwrite function to work. Here is the code: \\ index.php ?php $file_name = 'blank.php'; $open_file = fopen($file_name,rw); Looks like you're using fopen() incorrectly. Try:

[PHP] Writting to files.?

2001-07-05 Thread James Bartlett
Hi, Anyone know how I can write and read to different lines in a file rather than just adding to the text already on the first line of the file? Thanks Zotud

RE: [PHP] Writting to files.?

2001-07-05 Thread Don Read
On 05-Jul-01 James Bartlett wrote: Hi, Anyone know how I can write and read to different lines in a file rather than just adding to the text already on the first line of the file? Thanks Assuming you're talking about text files: A. suck the whole thing up in memory, change it there,

RE: [PHP] Writting to files.?

2001-07-05 Thread lists
On Thu, 5 Jul 2001, Don Read wrote: Anyone know how I can write and read to different lines in a file rather than just adding to the text already on the first line of the file? A. suck the whole thing up in memory, change it there, write it back out. Just as a note: for large (text or

Re: [PHP] Writting to files.?

2001-07-05 Thread James Bartlett
To: James Bartlett Cc: [EMAIL PROTECTED] Sent: Thursday, July 05, 2001 6:40 PM Subject: RE: [PHP] Writting to files.? On 05-Jul-01 James Bartlett wrote: Hi, Anyone know how I can write and read to different lines in a file rather than just adding to the text already on the first