Re: [PHP] Re: access denied

2002-10-06 Thread Simon Angell

I don't know exactly what shell access is, but in my quest to do what i was
trying to do, i realised its not worth it due to the fact the file i was
copying was still being accessed everytime the php file was open, and my aim
was to get the particular file from the remote server, copy it onto my
server 2 times a day and then the php file that im working on would access
the local file instead of the remote file which its doing now,

Anyways, thanx for all your help

--
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




RE: [PHP] Re: access denied

2002-10-04 Thread Timothy J Hitchens

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




[PHP] Re: access denied

2002-10-04 Thread Chen Shuang

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] Re: Access denied to php files in Netscape 6

2002-10-02 Thread Chris Nielsen

Forgot to mention that I have no proxy settings set for either IE or
Netscape.

"Chris Nielsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I still haven't figured this out.
>
> URL problems? No. The first time I tried it I copied the URL directly out
of
> my IE address bar to just check the file in Netscape quick to see how it
> looked.
> You are not authorized to view this page
> HTTP 401.3 - Access denied by ACL on resource
> Internet Information Services
>
> That is the file permissions error. But I have the standard configuration
> for IIS (PWS). IUSER has appropriate permissions. Just to be sure, I gave
> EVERYONE full access to all folders and files under wwwroot. No dice.
>
> One clue is that when I switch the URL in Netscape to
> http://localhost/test.php or http://127.0.0.1/test.php I get this error:
>
>  No web site is configured at this address.
>
> This leads me to believe that even though Netscape is using
> http://mymachinename/*.htm and displaying HTML pages just fine, that it's
> actually bypassing my IIS and just looking at the pages from disk rather
> than from the web server.
>
> I'm going to check into this some more when I have some time to burn. In
the
> meantime back to some coding =P.
>
> "Chris Nielsen" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I'm running PWS on WinXP Pro. I can't test my php stuffs in Netscape
cause
> > it says Access Denied when I try to access any php file. They work fine
in
> > IE6.
> >
> > Any ideas?
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Access denied to php files in Netscape 6

2002-10-02 Thread Chris Nielsen

I still haven't figured this out.

URL problems? No. The first time I tried it I copied the URL directly out of
my IE address bar to just check the file in Netscape quick to see how it
looked.
You are not authorized to view this page
HTTP 401.3 - Access denied by ACL on resource
Internet Information Services

That is the file permissions error. But I have the standard configuration
for IIS (PWS). IUSER has appropriate permissions. Just to be sure, I gave
EVERYONE full access to all folders and files under wwwroot. No dice.

One clue is that when I switch the URL in Netscape to
http://localhost/test.php or http://127.0.0.1/test.php I get this error:

 No web site is configured at this address.

This leads me to believe that even though Netscape is using
http://mymachinename/*.htm and displaying HTML pages just fine, that it's
actually bypassing my IIS and just looking at the pages from disk rather
than from the web server.

I'm going to check into this some more when I have some time to burn. In the
meantime back to some coding =P.

"Chris Nielsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm running PWS on WinXP Pro. I can't test my php stuffs in Netscape cause
> it says Access Denied when I try to access any php file. They work fine in
> IE6.
>
> Any ideas?
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Access denied errors

2002-05-07 Thread David J Jackson

Nick ---

Try this connect script.
Then from inside you php page use


HTH,
David

--- connect.php --


// database connect script
$dbhostname = "localhost";
$dbuser = "picklesql";
$dbpasswd = "pi56fb";
$dbname= "pickle";
$link = mysql_connect("$dbhostname", "$dbuser", "$dbpasswd")
 or die("Connection to server: $dbhostname FAILED!!");
mysql_select_db("$dbname")
 or die("Connection to database: $dbname FAILED!!");
?>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Access denied for user

2001-12-06 Thread Daniel Masur

you didnt entered the correct pasword for the mysql database



"Josep" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000501c17e48$3d5acaf0$[EMAIL PROTECTED]">news:000501c17e48$3d5acaf0$[EMAIL PROTECTED]...
> I get the following message when trying to view a php page
>
> Warning: Access denied for user: 'jupshoes@localhost' (Using password:
YES)
> in /home/jupshoes/public_html/guest/index.php on line 27
> Unable to connect to SQL server
>
> What is going wrong
>
> Josep
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]