Help with CHdir

From: Date: Wed, 02 Oct 2002 19:49:11 +0000
Subject: Help with CHdir
Groups: php.general 
Request: Send a blank email to php-general+get-118645@lists.php.net to get a copy of this message
I get this error from php when i execute this code can you help me ;) Warning: chdir() expects parameter 1 to be string, resource given in C:\xxxx\read.php on line 146 145 echo "<center>Attachment :"; 146 $rep = opendir("C:\\xxx\\Attach\\$id\\"); 147 chdir($rep); 148 while ($zone = readdir($rep)) 149 { 150 if (!is_dir($zone)) echo "<a href=\"../Attach/$id/$zone\">$zone</a><br>"; 151 } 152 echo "</center>"; 153 }

« previous php.general (#118645) next »