I have a perl script that works just fine when I'm logged into the shell.
3 lines, just:
my @fspec = ("/pathtothefile/thefile.htm");
my $now = time;
my $rv = utime ($now, $now, @fspec);
I think there's a 'touch' function in php that does the same thing. I've researched it and 'touch' can't really be done on php by just anybody.
Obviously, when I'm logged in to the shell, and I'm the owner, this will work.
I want to be able to run it from my browser (or actually, my application - I can send headers and such simulating a browser).
One thing I haven't tried (because I don't think it will work is .htaccess authentication) - That doesn't id me as the owner does it...just as a user on the domain.
What I'm looking for is an authentication method thru http that will identify me as the shell account owner of this file. Is this possible? If not, is there a way of doing it through FTP? - any raw FTP commands...
I hope I'm clear on this. I won't be using a browser or FTP client; but I can send headers and anything else through other programming methods.
P.S. One more thing that I've considered, but I just don't know *nix well enough. If I could send the parameters (user/pass) to the script, is there a way that the script can log me on as the owner before executing the three lines above?