access denied
| From: | Simon Angell | Date: | Wed, 02 Oct 2002 11:37:13 +0000 |
| Subject: | access denied | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118582@lists.php.net to get a copy of this message | ||
The PHP script im using works on my computers server, but when after
uploading to my web server i get this...
Warning: fopen("wtest.txt", "wb+") - Permission denied in
/home/canberra/public_html/bomonster/canberra.php on line 6
Dunno why either, the directory is not protected, can anyne help me with
this?
one?
The particular code in question...
//Writing of local file
$rContents = implode( "\r\n", file(
'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt'
) );
if( ($fp = fopen( 'wtest.txt', 'wb+' )) !== false )
{
fputs( $fp, $rContents );
fclose( $fp );
}
--
Cheers
---------------------------------------------------------
Simon Angell
Canberra ACT
www.canberra-wx.com
---------------------------------------------------------
Member of:
Australian Severe Weather Association.
www.severeweather.asn.au
---------------------------------------------------------
This email is virus free.
Scanned before leaving my mailbox
using Norton Antivirus 2002 for Win2k
Scanned with the latest definition File.