how to get php/apache to schedule tasks using the AT daemon

view story

http://stackoverflow.com – is there a way to enable a php script (apache user) to schedule a task using the AT daemon? I would like to pipe the task to the atd from my php script like this: exec( "echo 'date > /some/dir/date.txt' | at now + 1 minute > /dev/null &" ); when I run the php script from the command line (root) everything is fine, however, when I run the script via a http request the at job is never created. I am aware that apache doesn't have shell access, is there any work around available? (HowTos)