note 101369 added to function.is-dir

From: Date: Sun, 12 Dec 2010 20:59:03 +0000
Subject: note 101369 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-174835@lists.php.net to get a copy of this message
I think this will help all of you out there that are having problems with is_dir() returning false on known directories. I viewed the above posting about the relative and absolute paths causing problems and I tried his solution to no avail. I am using a hosting service and probably don't have the access necessary for his solution to work. Alternatively I discovered a solution on my own and it seems to work oodles better: **Simply use chdir() first to switch to the dir you want to read. Then use $var= opendir("."): ex: chdir('../photos'); $dirvar= opendir("."); //so far so good anyhow ---- Server IP: 69.147.83.197 Probable Submitter: 98.245.154.133 ---- Manual Page -- http://www.php.net/manual/en/function.is-dir.php Edit -- https://master.php.net/note/edit/101369 Del: integrated -- https://master.php.net/note/delete/101369/integrated Del: useless -- https://master.php.net/note/delete/101369/useless Del: bad code -- https://master.php.net/note/delete/101369/bad+code Del: spam -- https://master.php.net/note/delete/101369/spam Del: non-english -- https://master.php.net/note/delete/101369/non-english Del: in docs -- https://master.php.net/note/delete/101369/in+docs Del: other reasons-- https://master.php.net/note/delete/101369 Reject -- https://master.php.net/note/reject/101369 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174835) next »