note 55403 rejected from class.dir by nlopess

From: Date: Tue, 02 Aug 2005 14:59:11 +0000
Subject: note 55403 rejected from class.dir by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92955@lists.php.net to get a copy of this message
Note Submitter: alexandrosandovall at hotmail dot com ---- Hello Im having trouble with my php, its supose to read the directory and make an array with it. Here is the code: $mydir = new dir('/home/backendc/public_html/alex/'); echo "mydir= ". $mydir; while(($file = $mydir->read()) !== false) { echo "Filename: $file<BR>"; } i tried also this: $mydir = new dir('/alex/'); But it seems to have a php trouble in the server i rented The error is this: Fatal error: Cannot instantiate non-existent class: dir in /home/backendc/public_html/dirs.php on line 10 I think maybe the php version in the server its an old one, can some one help me?. I need to read the content of the directory dynamicaly. THANKS

« previous php.notes (#92955) next »