note 20217 added to function.opendir

From: Date: Tue, 26 Mar 2002 19:26:18 +0000
Subject: note 20217 added to function.opendir
Groups: php.notes 
Request: Send a blank email to php-notes+get-28244@lists.php.net to get a copy of this message
opendir() is reading the filesystem, so if you need a reference to a directory that is very deep under your www directory, you need to fully reference that in your opendir() statement. For example, I had some backgrounds in /home/gthomas/public_html/backgrounds that I needed to get to to randomize. So, the function was opendir("/home/gthomas/public_html/backgrounds"), as opposed to ("./backgrounds"), because this would break the site if you were one recursion in. -- http://www.php.net/manual/en/function.opendir.php http://master.php.net/manage/user-notes.php?action=edit+20217 http://master.php.net/manage/user-notes.php?action=delete+20217 http://master.php.net/manage/user-notes.php?action=reject+20217

« previous php.notes (#28244) next »