Bill -- ...and then bill said... % % I'm running a php script using cron, and want to change the working directory.
Piece of cake; use the chdir command. % % Is there a PHP equivalent of Linux pushd command? Why do you want to pushd? Do you have any intention of coming back to the initial directory? Note that pushd is meant to be used when you expect to pop off of the stack and not just as a cd/chdir replacement... If you really did need a pushd function, you might declare a $dirlist array and then use the array_push() and array_pop() functions to do the work for you. See the Fine Manual for more info. % % kind regards, % % bill hollett HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg76683/pgp00000.pgp
Description: PGP signature