Re: Move and rename help...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joker7 wrote:
Hi All-seeing All-knowing Ones :)

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@xxxxxxxxxxxxxxxxxx) 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.

Cheers
Chris






<pre><?php

$filename = 'video@xxxxxxxxxxxxxxxxxx';

echo "{$filename}\n";

$filename = preg_replace('|@[0-9]+|', '', $filename);

echo "{$filename}\n";

?>
--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux