Hey - aint used PHP in a few months and now a simple script wont work for me <?php function dirlisting($folder){ //set a function if ($handle = opendir($folder)) { // open the Folder $num = 0; while (false !== ($file = readdir($handle))) { // Make an array if ($file{0} != '.') { //if the file dont start with a "." $files[$num] = $file; $num++; }//End if }// End While } // End open $random= rand(0, (count($files)-1)); $dir ='images/'; // where the images $ll = substr($files[$random], -1); if($ll = 'g'){ header ('Content-type: image/jpeg'); include ($dir . $files[$num]); }else{ header ('Content-type: image/gif'); @include ($dir . $files[$num]); //header ("Location: " . $dir . $files[$random]); }//end else }//end function dirlisting($folder){ //use function ?> and this error comes up <br /> <b>Warning</b>: main(images/) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/exussum/public_html/sig/index.php</b> on line <b>16</b><br /> <br /> <b>Warning</b>: main(images/) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/exussum/public_html/sig/index.php</b> on line <b>16</b><br /> <br /> <b>Warning</b>: main() [<a href='function.include'>function.include</a>]: Failed opening 'images/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/exussum/public_html/sig/index.php</b> on line <b>16</b><br /> Any ideas on how to fix ? Thanks