Re: php equivalient of pushd?

From: Date: Mon, 26 Aug 2002 09:54:35 +0000
Subject: Re: php equivalient of pushd?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-114122@lists.php.net to get a copy of this message
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) davidtg@justpickone.org * than to live up to them. -- fortune cookie (work) davidtgwork@justpickone.org http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#114122) next »