Hi,
I'm currently writing a wee library tool in PHP. It generates a few
(actually a lot) of temporary files and directories, so I need to setup
some garbage collection. I can do this a lot more effeciently from the
shell on a POSIX system than writing lots of PHP code, but the former wont
to work if someone tries to run it on a different platform.
(If on Unix/Linux/... I can use 'at now' to sperate the process group, and
use 'find' to delete the aged files).
Anybody got any hot tips on how to detect the platform? (I guess I could
search the $PATH for 'at' and 'find' but I was looking for a quicker fix)
TIA
C.