Reply to Re: [PHP] Insert Chars into a string

Your name:

Reply:


Posted by Richard Lynch on 04/19/05 07:27

On Thu, April 14, 2005 10:53 am, PartyPosters said:
> Hello,
> I have a variable that contains a filename, I want to be able to insert
> the date and time just before for the ".jpg"
> for example if my filename is 'pic.jpg' I want it to read 'pic_Monday 15th
> of January 2003 05:51:38 AM.jpg (or if anyone else knowshow to write the
> time and time all in numbers it would be appreciated as I'm using ate("l
> dS of F Y h:i:s A") which obviously is a bit long.

You could just use Unix time http://php.net/time and then format it as a
human-readable date later.

Or, use 20030115055138 so you have no spaces as a compromise between
human-comprehensible (with practice) and icky filenames with spaces.

--
Like Music?
http://l-i-e.com/artists.htm

[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

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