Hi all - it seems as if over the last 8y or so FTP programs have graced us with the ability to set timestamps on local files downloaded from a server to that of the server source.
However - nowhere can I find anyway to do the opposite, and set/match server timestamps to that of a local source. Searching online yields only 2 ideas - putting the timestamp in the front of the filename (archaic) or zipping the files then unzipping them on the server (I can't just unzip files on my webhost? plus they also pointed out they would maintain their permissions too).
Unix commands like touch
surely should be involved in some kind of tool/script or whatever to do what I'm after? I really don't know how to solve this. I could operate on the files using a PHP script if I wrote one, but I don't know how I'd write one that would change the timestamps on the files nor how it would know what to change them too based on local source files on my PC. Then of course there's making it perform this on a directory + subdirectories ...
So am I going insane or has noone ever needed to make server timestamps matter rather than just being when-uploaded rather than when-file-originally-made? All input welcome!
_________________________________
Leozack
However - nowhere can I find anyway to do the opposite, and set/match server timestamps to that of a local source. Searching online yields only 2 ideas - putting the timestamp in the front of the filename (archaic) or zipping the files then unzipping them on the server (I can't just unzip files on my webhost? plus they also pointed out they would maintain their permissions too).
Unix commands like touch
surely should be involved in some kind of tool/script or whatever to do what I'm after? I really don't know how to solve this. I could operate on the files using a PHP script if I wrote one, but I don't know how I'd write one that would change the timestamps on the files nor how it would know what to change them too based on local source files on my PC. Then of course there's making it perform this on a directory + subdirectories ...
So am I going insane or has noone ever needed to make server timestamps matter rather than just being when-uploaded rather than when-file-originally-made? All input welcome!
_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);