[PHP-DB] Re: Subject: Hitcounter works on production server but not on localhost

2003-11-20 Thread Neil Smth
Its not a permissions thing. You need to ensure that you provide PHP with a 
full path to the hit counter file :

countrerlog.txt is a relative path.
c:\\Inetpub\\wwwroot\\WCBE\\countrterlog.txt is a full path.
You need to do the same with the relative path to 
FX_DataCounter/wcbecounter.txt as well

Cheers - Neil.

At 13:25 20/11/2003 +, you wrote:
From: Paul Ihrig [EMAIL PROTECTED]
Date: Wed, 19 Nov 2003 07:16:11 -0500
Subject: works on production server but not on localhost
hey guys..
just getting back in to using a little php.
have 2 simple hit counters that work fine on the production server.
but on my localhost it throughs several errors. looks like a permissions
thing?
i am not sure if there is a setting in my php.ini file that needs to be
tweaked.
kind of blind to the errors.
looks like a permissions thing?

hit counter: Warning: fopen(counterlog.txt, w) - Permission denied in
C:\Inetpub\wwwroot\WCBE\counter.php on line 4 Warning: fwrite(): supplied
argument is not a valid File-Handle resource in
C:\Inetpub\wwwroot\WCBE\counter.php on line 5 Warning: fclose(): supplied
argument is not a valid File-Handle resource in
C:\Inetpub\wwwroot\WCBE\counter.php on line 6 12
hit counter2: 1
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] RE: Subject: Hitcounter works on production server but not on localhost

2003-11-20 Thread Paul Ihrig
hey niel.
thanks man...
thats wierd, why does it need to be full?

how would i have been able to figure that out?
appreciate it..

-Original Message-
From: Neil Smth [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 12:53 PM
To:
Cc: [EMAIL PROTECTED]
Subject: Re: Subject: Hitcounter works on production server but not on
localhost


Its not a permissions thing. You need to ensure that you provide PHP with a
full path to the hit counter file :

countrerlog.txt is a relative path.
c:\\Inetpub\\wwwroot\\WCBE\\countrterlog.txt is a full path.

You need to do the same with the relative path to
FX_DataCounter/wcbecounter.txt as well

Cheers - Neil.

At 13:25 20/11/2003 +, you wrote:
From: Paul Ihrig [EMAIL PROTECTED]
Date: Wed, 19 Nov 2003 07:16:11 -0500
Subject: works on production server but not on localhost

hey guys..
just getting back in to using a little php.

have 2 simple hit counters that work fine on the production server.
but on my localhost it throughs several errors. looks like a permissions
thing?

i am not sure if there is a setting in my php.ini file that needs to be
tweaked.
kind of blind to the errors.

looks like a permissions thing?

hit counter: Warning: fopen(counterlog.txt, w) - Permission denied in
C:\Inetpub\wwwroot\WCBE\counter.php on line 4 Warning: fwrite(): supplied
argument is not a valid File-Handle resource in
C:\Inetpub\wwwroot\WCBE\counter.php on line 5 Warning: fclose(): supplied
argument is not a valid File-Handle resource in
C:\Inetpub\wwwroot\WCBE\counter.php on line 6 12
hit counter2: 1

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