Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

using php, I want to rename file '1' to 'email.txt'

many folders not recursive

folderA/1
folder45/1
folderHello/1
anotherFolder/1

files are named '1' with no extension name

I want to rename file '1' to 'email.txt'
SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@mankowitz: Yes, that is exactly what the script does, but it provides a generalized solution that does not need to be installed and run in every single directory you have on your server (some might have many directories).  Sometimes less is more and sometimes more is more. ;-)
Avatar of rgb192

ASKER

I like Ray's script the best because it worked for my directories.