RE: Subject: Hitcounter works on production server but not on localhost
| From: | Paul Ihrig | Date: | Thu, 20 Nov 2003 17:54:47 +0000 |
| Subject: | RE: Subject: Hitcounter works on production server but not on localhost | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31665@lists.php.net to get a copy of this message | ||
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:php@comatose.freeserve.co.uk]
Sent: Thursday, November 20, 2003 12:53 PM
To:
Cc: pihrig@columbus.rr.com
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 +0000, you wrote:
>From: "Paul Ihrig" <pihrig@columbus.rr.com>
>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: 00001