Re: [PHP] Renaming files after a name in the db field

2002-03-13 Thread Analysis & Solutions
On Wed, Mar 13, 2002 at 01:45:21PM +0100, Andy wrote: > > How could I generate a php script which scannes the dir for matching > Countrycode patterns and renames the filename ? > E.g.: Make out of CA-map.gif -> canada-map.gif? First, make an array of countries codes and names (see below for one

[PHP] Renaming files after a name in the db field

2002-03-13 Thread Andy
Hi there, I am wondering if this is possible in php: I have a whole bunch of files named after countrycodes. E.g. CA-map.gif Now I would like to rename those files after the country. This is listed in a dbtable containing the countrycode and countryname. E.g. CA - Canada How could I generate a