Reply to Renaming a file but preserving the extension

Your name:

Reply:


Posted by laredotornado@zipmail.com on 02/23/07 18:44

Hi,

A question for those of you who always seem to know the one line way
of doing things. I'm using php 4.4.4 and I want to rename the first
part of the file to a particular string. For example, if my input
string were

$input = "/path/to/my/file/12345.jpg";

I would want my result to be "/path/to/my/file/header.jpg", assuming
"header" was my fixed string.

Any slick ways to do this?

Thanks, - Dave

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация