|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-10-03 20:19 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
it seems that using the dir() function inside classes does not work the error message is: Warning: unable to find my handle property in /dot/dgs/tc/dgs/search/test.php3 on line 5 what am i doing wrong??? sample file: <? class tubu { cfunction test() { $d = dir("/tmp/"); while ($f = $d->read()) { echo $f."<BR>"; } } } /* this works */ { $d = dir("/tmp/"); while ($f = $d->read()) { echo $f."<BR>"; } } $hallo = new tubu; /* this doesn't */ $hallo->test(); ?>