I am using php 4.3.0 on a server running under FreeBSD, and php 4.3.1 on my PC at home using Xitami with W2K. At home "touch" works exactly as expected.
On my server, providing the permissions are right, I can touch a file using:
if (touch ($filename))
but the same php file, same perms, same everything, using
$timeu = time();
if (touch ($filename, $timeu))
returns false.
As I said, I have tested on my PC and no problems and sensible dates obtained on the target file. Any ideas what is going wrong? In case you wonder, the above is stage one in manipulating the last modified date further, but this is the point the failure occurs at.
ayj