Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 28th, 2007, 08:05 AM
terrychangsharp@gmail.com
Guest
 
Posts: n/a
Default How can I change a file's date?

I think this must be easy but, alas, I can't find it!
Is there any function I can use to change a file's date/time?

  #2  
Old February 28th, 2007, 09:25 AM
Martin Mandl - m2m tech support
Guest
 
Posts: n/a
Default Re: How can I change a file's date?

On Feb 28, 8:51 am, terrychangsh...@gmail.com wrote:
Quote:
I think this must be easy but, alas, I can't find it!
Is there any function I can use to change a file's date/time?
It is ;) Have a look at http://at.php.net/manual/en/function.touch.php

bool touch ( string $filename [, int $time [, int $atime]] )

However, it does not really work under Windows.

Have fun
Martin

------------------------------------------------
online accounting on bash bases
Online Einnahmen-Ausgaben-Rechnung
http://www.ea-geier.at
------------------------------------------------
m2m server software gmbh
http://www.m2m.at

  #3  
Old February 28th, 2007, 06:45 PM
Chuck Anderson
Guest
 
Posts: n/a
Default Re: How can I change a file's date?

Martin Mandl - m2m tech support wrote:
Quote:
On Feb 28, 8:51 am, terrychangsh...@gmail.com wrote:
>
Quote:
>I think this must be easy but, alas, I can't find it!
>Is there any function I can use to change a file's date/time?
>>
>
It is ;) Have a look at http://at.php.net/manual/en/function.touch.php
>
bool touch ( string $filename [, int $time [, int $atime]] )
>
However, it does not really work under Windows.
>
That's an overstatement, In Windows you can not modify the date and time
of a *folder*. It works fine on files, though.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*****************************
  #4  
Old March 1st, 2007, 09:35 AM
Martin Mandl - m2m tech support
Guest
 
Posts: n/a
Default Re: How can I change a file's date?

On Feb 28, 7:36 pm, Chuck Anderson <websiteaddr...@seemy.sigwrote:
Quote:
Martin Mandl - m2m tech support wrote:
Quote:
bool touch ( string $filename [, int $time [, int $atime]] )
However, it does not really work under Windows.
>
That's an overstatement, In Windows you can not modify the date and time
of a *folder*. It works fine on files, though.
Didn't know that, happy to learn something new ;)

Cheers
Martin


------------------------------------------------
online accounting on bash bases
Online Einnahmen-Ausgaben-Rechnung
http://www.ea-geier.at
------------------------------------------------
m2m server software gmbh
http://www.m2m.at

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles