| View previous topic :: View next topic |
| Author |
Message |
nemesis
Joined: 05 Jan 2006
Posts: 3
|
| Posted: Thu Jan 05, 2006 8:24 pm Post subject: problems with file log |
|
|
Hi,
i'd like to use Php Site Stats with a file log instead of a database but I can't make it work anyway.
Could you, please, give me just an example of what I have to write in the configure pannel (and the setup pannel if there's something to set there too) to make it work? I think I make some mistakes because i tried with the database and it worked immediately.
In the "logs" line a write a file name (for example "logs"), i click the button to create it and i find in my web server... so this should be ok.
On the second line?? "file path/name" and "record name" what do i have to write????
Thank you so much for any replies! |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 303
|
| Posted: Sun Jan 08, 2006 11:21 am Post subject: |
|
|
| you can use anything as the name and in the path/filename put the full path an filename of the file |
|
| Back to top |
|
nemesis
Joined: 05 Jan 2006
Posts: 3
|
| Posted: Sun Jan 08, 2006 6:41 pm Post subject: |
|
|
well that's what i did.
But going to the index to check the stats I always have the answer "could not open......" with the path/filename I set.
On the file i set chmod 666 or 777 (anyway with write permissions) but no changes in both ways... any suggestions?
Thanks anyway for the answer! |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 303
|
| Posted: Mon Jan 09, 2006 10:30 pm Post subject: |
|
|
| you should have posted the exact quote of the error , try changing the slashes |
|
| Back to top |
|
mrw
Joined: 25 Jan 2006
Posts: 2
|
| Posted: Wed Jan 25, 2006 10:40 am Post subject: |
|
|
just like nemesis wrote, the log file can't be opened.
i did the following:
entered the file name: pcw
clicked on Create FileLog File
-> the file pcw was successfully created in the logs directory
entered file path/name: logs/pcw (is this correct? also tried /logs/pcw, phpsitestats/logs/pcw)
entered a record name: abc
clicked on Add FileLog Record
-> Log entry was successfully added.
inserted code in webpages
when i call the statistics i get:
"could not open logs/pcw" in the column "log size"
where is/are my mistake(s)? |
|
| Back to top |
|
Vlad Alexa Mancini
Joined: 07 Jul 2003
Posts: 303
|
| Posted: Mon Jan 30, 2006 10:36 am Post subject: |
|
|
| do not use relative paths like logs/pcw unless you really know what you are doing , otherwise try C:/dir/example/logs/pcw |
|
| Back to top |
|
mrw
Joined: 25 Jan 2006
Posts: 2
|
| Posted: Tue Jan 31, 2006 8:22 am Post subject: |
|
|
The files are on the server not on my harddisk.
Could you please post a real example with the directory structure on a server and how the path needed by phpsitestats should look like? |
|
| Back to top |
|
nemesis
Joined: 05 Jan 2006
Posts: 3
|
| Posted: Fri Mar 03, 2006 8:51 pm Post subject: |
|
|
still the same problem here :(
I changed the path to te log file but any change gives me the error "could not find log file" or something like that.
It seems it only works with this path: /web/htdocs/www.mywebsite.net/home/user/phpsitestats/logs/mylogfile but anyway i still have the error "could not open..." with the path here above.
It seems to be a chmod problem but i tried with 666 and 777 to the file and the directory too, but no changes.
Really can't understand. |
|
| Back to top |
|
iwkse
Joined: 04 Apr 2006
Posts: 1
|
| Posted: Wed Apr 05, 2006 12:37 am Post subject: Log file |
|
|
Hi all,
i was able to install phpsitestats but it has some little things to fix.
If you still see "could not open file" don't give the log extention to the file.
Just use some other or don't use at all cause works fine.
I don't know if it can depend on the nature of hosting (linux, window)
Than you need to access at least for one time for make it to works.
There is a problem with the functions filesize but also file_exists when the lenght of file is 0. They don't find it.
Thats a problem cause when you add more logs for different page, if the first is 0 (you still haven't got access) you'll see on the list page only the first log cause code will break when it finds the "could not open file" error.
For Alexa: if you need help in developing it i can join the project. I'm using it and i like it:)
see ya all |
|
| Back to top |
|
| |