str_replace() is faster and better for simple string replacement. -----Original Message----- From: vins [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 9:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Truncate ::: DAM!!!!!
LOL...... So after my last post about updating files i sat and thought about all the replies i got... and then a slap on the head solved the "DUH" problem ereg_replace("\r\n", "\n", $DBfile); I mean..... i am a dork as the best of times.. but now.... there is another problem.... the file length is 10 charactes but the new file length is 15.... I need to overright everything in the old file and somehow push the file length to 15 it truncates..... what now ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php