Re: Move and rename help...
| From: | Richard Lynch | Date: | Thu, 09 Aug 2007 04:37:46 +0000 |
| Subject: | Re: Move and rename help... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260482@lists.php.net to get a copy of this message | ||
On Wed, August 8, 2007 5:39 pm, Joker7 wrote:
> Can anyone give me some pointer,here's my problem.I wish to move a
> file from
> a local server to a remote one.The file is in the format
> (video@20070808220957.jpg) on moving the file to the remote server I
> wish to
> remove the time stamp part of the file and just leave ( video.jpg ).
> To be
> trueful I don't have a clue where to start I did a bit of Google-ing
> to see
> if I could find a ready made script with out luck.So any help will be
> most
> welcome.
Where is the PHP bit?...
$filename = preg_replace("|@[0-9]{14}|", "", $filename);
will get rid of the @yyyymmddhhiiss part.
How you "move" the file is probably not real relevant to PHP anyway...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?