Re: Subject: Hitcounter works on production server but not on localhost

From: Date: Thu, 20 Nov 2003 17:53:08 +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-31662@lists.php.net to get a copy of this message
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


« previous php.db (#31662) next »