RE: [PHP] Truncate ::: DAM!!!!!

From: Date: Fri, 19 Jul 2002 05:03:35 +0000
Subject: RE: [PHP] Truncate ::: DAM!!!!!
Groups: php.general 
Request: Send a blank email to php-general+get-108433@lists.php.net to get a copy of this message
str_replace() is faster and better for simple string replacement. -----Original Message----- From: vins [mailto:vins@webonline.co.za] Sent: Thursday, July 18, 2002 9:43 PM To: php-general@lists.php.net 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

« previous php.general (#108433) next »