Please don't 777 anything... do you have shell access (if platform/access supports it) login and and see what the perms are and work on the problem don't hammer it with a fix all.
Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -----Original Message----- From: Chen Shuang [mailto:[EMAIL PROTECTED]] Sent: Thursday, 3 October 2002 7:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: access denied try CHMODing your files and your directory to 777, since i believe you are using a Linux Server. "Simon Angell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php