473,511 Members | 16,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setting filemtime

I see that php has filemtime and stat.

I don't see how to set a files last modification time. How do you do that?

Jeff
Aug 13 '08 #1
2 1758
Jeff wrote:
I see that php has filemtime and stat.

I don't see how to set a files last modification time. How do you do that?

Jeff
You can't, other than the current time (i.e. open the file for append
and close it again).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 13 '08 #2
On Aug 13, 2:18*am, Jeff <jeff@spam_me_not.comwrote:
* I don't see how to set a files last modification time. How do you do that?
touch() — Sets access and modification time of file.
Aug 13 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5118
by: Erica | last post by:
Hey, I need a function to obtain the "last modified" timestamp from a file. filemtime works perfectly well when I am working with a file on my server. However, sometimes I need to pass it a full...
3
2836
by: Kenny Halley | last post by:
I am a newb I have to admit at this programming lark (i have tried various languages in the past but can't seem to find my way round them, but for once I feel I am getting somewhere with php and...
1
6442
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
1
3248
by: yawnmoth | last post by:
Say I have the following script: <?php $timestamp = filemtime("test.txt"); echo 'original file time<br />'.$timestamp.'<br />'; $fp = fopen("test.txt",'w'); fputs($fp,$data); fclose($fp);
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.