Re: popen() and virtual dir

From: Date: Sat, 10 Jun 2000 18:08:00 +0000
Subject: Re: popen() and virtual dir
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-20958@lists.php.net to get a copy of this message
> What do you guys want to do with popen() and virtual_dir? This effects all > of the exec() functions. > We can either do a real chdir() before calling it and mutexing the whole > section; or we can take a more complicated approach of creating a new > process and doing the chdir() there. Last but not least, we could just > disable these functions :) Well, disabling them is not really an option. As for creating a new process and doing a chdir() there. These functions already create a new process. Would something like: popen("cd /path; cmd") do the trick? ie. prepend the virtual_dir chdir to the cmd string we pass to these functions. The chdir should be isolated to the spawned process. -Rasmus

« previous php.dev (#20958) next »