note 19170 added to function.chdir
| From: | frank dot pfabigan at zax-wop dot de | Date: | Mon, 18 Feb 2002 18:14:31 +0000 |
| Subject: | note 19170 added to function.chdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26752@lists.php.net to get a copy of this message | ||
what confused me was the command order when opening a directory handle and change to another
directory.
this seems right:
1. chdir( towhereyouwanngo );
2. $fh = opendir( "." );
3. ... further operations
4. closedir( $fh );
i tried first to open an directory handle and then to change directory. this won't work.
--
http://www.php.net/manual/en/function.chdir.php
http://master.php.net/manage/user-notes.php?action=edit+19170
http://master.php.net/manage/user-notes.php?action=delete+19170
http://master.php.net/manage/user-notes.php?action=reject+19170