Weather by You!

Templates and Projects support => Modules => Topic started by: MatrixStorms on March 02, 2014, 02:22:41 AM

Title: NOAA-reports Error
Post by: MatrixStorms on March 02, 2014, 02:22:41 AM
Warning: opendir(./NOAA-reports) [function.opendir]: failed to open dir: No such file or directory in /home/a7346512/public_html/NOAA-reports.php on line 196

also I have included an image of how I have my setup for NOAA Report

Mike
Title: Re: NOAA-reports Error
Post by: Mr.Meteo on March 02, 2014, 06:50:39 AM
Hi Mike,

Sorry, your configuration seems to be good, but I don't
know your page, but at evidence it doesn't find your
NOAA files, so check this line #196

Regards,
Jacques
Title: Re: NOAA-reports Error
Post by: MatrixStorms on March 02, 2014, 03:33:11 PM
hi Jacques this is the code of 196 error
Code: [Select]
if ($handle = opendir("$NOAAdir")) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
            $files[] = $file;
        }
}
closedir($handle);
Title: Re: NOAA-reports Error
Post by: Mr.Meteo on March 03, 2014, 11:15:19 AM
Hi Mike,

It seems like your page cannot find the directory
pointed by that script.

In these lines we can see that $NOAAdir contain
the folder name needed to run your page. So check if that
$NOAAdir is referenced elsewhere in your page... it is
supposed to point to a folder.

Regards,
Jacques