[PHP-DB] fwrite(): can this function append to the middle of a file?

2007-08-16 Thread joefazee
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:

Re: [PHP-DB] fwrite(): can this function append to the middle of a file?

2007-08-16 Thread Chris
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.

[PHP-DB] fwrite()

2002-01-25 Thread James Kupernik
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);

Re: [PHP-DB] fwrite()

2002-01-25 Thread daniel
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);

RE: [PHP-DB] fwrite()

2002-01-25 Thread Gurhan Ozen
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

Re: [PHP-DB] fwrite()

2002-01-25 Thread James Kupernik
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

Re: [PHP-DB] fwrite()

2002-01-25 Thread daniel
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

RE: [PHP-DB] fwrite()

2002-01-25 Thread Jamie Kupernik
'); -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

Re: [PHP-DB] fwrite()

2002-01-25 Thread daniel
$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

RE: [PHP-DB] fwrite()

2002-01-25 Thread Gurhan Ozen
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