as you will see I'm a newbie
I have the following code:
while($file = readdir($dir)){
if($file!="." && $file!=".."){
$cont++;
...
...
}
}
and next I want to work with the variable $file but if I do the this:
if($file){
echo"OK";
}else{
echo"Error";
}
I get ther Error message.
How can I work with the $file outside the while cycle??
Thanks
$fileoutside thewhile" does not make sense. Which file exactly?