Can i write to the middle of a file using the fwrite() function like
---
line one
line two
line three
and maybe the next day i want to write in between line two and line three.
how pls.
--
View this message in context:
joefazee wrote:
Can i write to the middle of a file using the fwrite() function like
---
line one
line two
line three
and maybe the next day i want to write in between line two and line three.
Read in the whole file.
Put the line in the middle manually.
I'm trying to take the contents of a table and write them to a file on my
server. Everything seems to function ok (AKA no errors) but no file gets
written ... I can't figure out why. Can anyone shine some light on this dark
problem?
$db = mysql_connect(localhost,cloft,spring);
I'm trying to take the contents of a table and write them to a file on my
server. Everything seems to function ok (AKA no errors) but no file gets
written ... I can't figure out why. Can anyone shine some light on this dark
problem?
$db = mysql_connect(localhost,cloft,spring);
it into a file.
Gurhan
-Original Message-
From: James Kupernik [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] fwrite()
I'm trying to take the contents of a table and write them to a file on my
server. Everything seems to function ok (AKA
Still when I make the changes suggested the file will not be created, yet I
get no form of an error message.
Is there something else I'm missing?
I'm trying to take the contents of a table and write them to a file on my
server. Everything seems to function ok (AKA no errors) but no file gets
Still when I make the changes suggested the file will not be created, yet I
get no form of an error message.
Is there something else I'm missing?
Please post your new code for review.
Daniel J. Lashua
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
');
-Original Message-
From: daniel [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 4:15 PM
To: James Kupernik
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] fwrite()
Still when I make the changes suggested the file will not be created,
yet I get no form of an error message
$prefilename = date(m-d-y);
$filename = $prefilename.txt;
$db = mysql_connect(localhost,cloft,spring);
mysql_select_db(countryloft);
// get requests from table
$result = mysql_query(SELECT * FROM catalogreq WHERE
PROCESSED
PROTECTED]
Subject: RE: [PHP-DB] fwrite()
$prefilename = date(m-d-y);
$filename = $prefilename.txt;
$db = mysql_connect(localhost,cloft,spring);
mysql_select_db(countryloft);
// get requests from table
$result = mysql_query(SELECT
10 matches
Mail list logo