note 89580 added to function.rename

From: Date: Sat, 14 Mar 2009 22:53:03 +0000
Subject: note 89580 added to function.rename
Groups: php.notes 
Request: Send a blank email to php-notes+get-151953@lists.php.net to get a copy of this message
In response to: rename brent at brenthugh dot com 09-Jan-2009 06:31 Great script, works perfectly. I have amended for my own needs to remove the .php file extension from all files in the directory and found out there's a small bug in the code: At the start of the funtion $num needs to be set to 1 instead of 0 ($num = 1). Otherwise the function always returns 0 instead the number of file replacements. ---- Server IP: 83.137.20.135 Probable Submitter: 87.211.78.15 ---- Manual Page -- http://www.php.net/manual/en/function.rename.php Edit -- https://master.php.net/note/edit/89580 Del: integrated -- https://master.php.net/note/delete/89580/integrated Del: useless -- https://master.php.net/note/delete/89580/useless Del: bad code -- https://master.php.net/note/delete/89580/bad+code Del: spam -- https://master.php.net/note/delete/89580/spam Del: non-english -- https://master.php.net/note/delete/89580/non-english Del: in docs -- https://master.php.net/note/delete/89580/in+docs Del: other reasons-- https://master.php.net/note/delete/89580 Reject -- https://master.php.net/note/reject/89580 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151953) next »