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,
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:
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
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,
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
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
6 matches
Mail list logo