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 > $file_name = 'blank.php'; > $open_file = fopen("$file_name","rw"); Looks like you're using fopen() incorrectly. Try:

[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 This works as I need it to, opens the file and then removes the first < so that it won't be parsed as a php script. \\ edit_passwords.php I have read and writ

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 te

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 o

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 t

[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