Re: pwd() ??

From: Date: Tue, 29 Jun 1999 11:08:58 +0000
Subject: Re: pwd() ??
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-7797@lists.php.net to get a copy of this message
On Mon, 28 Jun 1999, Brian Schaffner wrote: > is there a reason why pwd() was never implemented? we have a chdir() but no > pwd() - seems kinda silly... > > i'll add it if there are no concerns.... Call it getcwd() or getwd() then, like the C counterparts. The documentation should mention that this is a rather expensive call (it opens ".." and reads the directory to find itself, recursively until it reaches the root). - Stig

« previous php.dev (#7797) next »