Reply to Re: Date Auto-Update on Save Dreamweaver/PHP

Your name:

Reply:


Posted by Andy Jeffries on 04/05/06 13:11

On Tue, 04 Apr 2006 20:47:10 -0700, NC wrote:
>> Just wondering if any of you knew of a way to trap the <!-- #BeginDate
>> format:Am1 -->April 4, 2006<!-- #EndDate --> (Dreamweaver's
>> Auto-Update-on-Save Date Code) into a PHP variable and still have the
>> Date update on save?
>
> Why bother? Just use the file system functions:
>
> $saved_date = date('F j, Y', filectime(__FILE__));

But you probably want to use filemtime not filectime. The date of the
last save, not the date the file was created on.

Cheers,


Andy


--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

[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

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