thanks all of you i've done through this function: function rename_file($name, $id) { $arr = explode('.',$name); return $arr[0].$id.'.'.$arr[1]; } the problem I have now is to rescue all the data I've lost due this error... I have 300 records already. bye Oreste Attanasio PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/