note 70712 added to function.is-dir

From: Date: Tue, 24 Oct 2006 20:53:01 +0000
Subject: note 70712 added to function.is-dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-119083@lists.php.net to get a copy of this message
Ah ha! Maybe this is a bug, or limitation to be more precise, of php. See http://bugs.php.net/bug.php?id=27792 A workaround is posted on the page (above) and seems to work for me: function is_dir_LFS($path){ return (('d'==substr(exec("ls -dl '$path'"),0,1))?(true):(false)); } PS: I'm using PHP 4.3.10-16, posts report this problem up to 5.0 ---- Server IP: 216.194.113.175 Probable Submitter: 167.154.42.157 ---- Manual Page -- http://www.php.net/manual/en/function.is-dir.php Edit -- https://master.php.net/note/edit/70712 Del: integrated -- https://master.php.net/note/delete/70712/integrated Del: useless -- https://master.php.net/note/delete/70712/useless Del: bad code -- https://master.php.net/note/delete/70712/bad+code Del: spam -- https://master.php.net/note/delete/70712/spam Del: non-english -- https://master.php.net/note/delete/70712/non-english Del: in docs -- https://master.php.net/note/delete/70712/in+docs Del: other reasons-- https://master.php.net/note/delete/70712 Reject -- https://master.php.net/note/reject/70712 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119083) next »