Page 1 of 1

NOAA Error

Posted: Mon 03 Mar 2014 2:48 am
by Michael_Wright
I am getting an warning Error

Code: Select all

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
I am pretty sure I have setup the NOAA right in cumulus but I have inclosed an image file of the NOAA setup

Mike

Re: NOAA Error

Posted: Mon 03 Mar 2014 3:45 am
by BCJKiwi
This is a separate FTP session from the one in "Internet Settings" / "Sites/Options" so will need the full path that you have in internet settings plus the NOAA subfolder.

It would be really helpful if you included the link to your website so one might answer more intelligently - I have to assume this is a Saratoga website as there is not normally an NOAA folder in the Cumulus html website.

Re: NOAA Error

Posted: Mon 03 Mar 2014 5:36 am
by Michael_Wright
no mate only using the cumulus software as I know nothink about php but I see on some of the cumulus site they have NOAA on there page and though I would give it a go

Re: NOAA Error

Posted: Mon 03 Mar 2014 7:25 am
by steve
You have ticked "Auto FTP after auto save" (note the "after auto save" part), but you have not ticked "auto save after daily reset".

Re: NOAA Error

Posted: Tue 04 Mar 2014 6:23 am
by Michael_Wright

Code: Select all

if ($handle = opendir("$NOAAdir")) { 
	while (false !== ($file = readdir($handle))) { 
		if ($file != "." && $file != "..") { 
            $files[] = $file; 
        } 
	} 
	closedir($handle); 

	sort($files); // ascending order
	$lastyear = '';
Hi Steve the 196 Error I am getting is in this code here do I need to change anythink here

Re: NOAA Error

Posted: Tue 04 Mar 2014 7:53 am
by steve
Sorry, I don't know anything about that PHP code. Have you actually ticked the box now to get the reports created, but you still get the error?

Re: NOAA Error

Posted: Tue 04 Mar 2014 9:06 am
by beteljuice
It's telling you the obvious ! - the directory (NOAA-reports) either does not exist or has no files in it.
Mess with the code and I'll break your fingers :o
Have you looked at your site with either your ftp client or ISP control panel to see what's what's there ?

It's looking as if you have not yet created / uploaded any files.