note 53859 added to class.dir

From: Date: Wed, 15 Jun 2005 14:54:12 +0000
Subject: note 53859 added to class.dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-90464@lists.php.net to get a copy of this message
If you get the following error: Fatal error: Call to a member function on a non-object in /www/htdocs/list.php on line 23 check if you use $a = dir(""); --> since ca. PHP 4.3 this form occurs an error. Now you have to write the full path: $a = dir("/www/htdocs/"); Since January 2005 I had to update all my scripts at one webspace ;-( ---- Manual Page -- http://www.php.net/manual/en/class.dir.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53859 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53859&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53859&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53859&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53859&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53859&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53859&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90464) next »