note 20217 deleted from function.opendir by sniper

From: Date: Sun, 12 Oct 2003 04:29:30 +0000
Subject: note 20217 deleted from function.opendir by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58329@lists.php.net to get a copy of this message
Note Submitter: gthomas@sunflower.com ---- 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.

« previous php.notes (#58329) next »