Log In · Register

 
hits and users
*mona lisa*
post May 9 2005, 08:00 PM
Post #1





Guest






You know how you can have stats for your site? I've seen a few of them. Well I have this:


Problem is, whenever I change the name and paste it, it doesn't work. There's a part of the page that suddenly disappears. Is there something I should be doing?
 
 
Start new topic
Replies (1 - 7)
IGB
post May 9 2005, 11:30 PM
Post #2


New Type
****

Group: Member
Posts: 145
Joined: Mar 2005
Member No: 119,960



name as in the "title" of that thing? Blame the free web counters. It's like their ad thing i guess, they wont let you change it.
 
MarlboroMan
post May 10 2005, 03:43 PM
Post #3


Senior Member
***

Group: Member
Posts: 33
Joined: May 2005
Member No: 136,980



if your willing to use a php counter you can do this , it is very simple , u just need to rename your html page to .php and then add 1 line of small code..

Paste this into counter.php


now that u have that pasted in a empty doc, just name it counter.php and leave it be. Now open up your html page and paste this where u want the counter to be


1 last thing to do, is make a txt file on your computer and name it counter.txt, upload it to the server and it should work..

if the php code doesn't work then pls post your error, cause I wrote that in this msg and I have not tested it . But it should work just fine

-MM
 
*mona lisa*
post May 10 2005, 03:49 PM
Post #4





Guest






Haha, I was going to post a php counter cause I have a problem with it. So, I got it from here. Now, I understand everything except the part where it says "ChMOD views.txt to 777". What is that and how do I do it? The code from that site is this:


And MarlboroMan, I am currently testing out what you gave.
 
MarlboroMan
post May 10 2005, 04:00 PM
Post #5


Senior Member
***

Group: Member
Posts: 33
Joined: May 2005
Member No: 136,980



I would not recommend chmod to 777.. mabey 755 ... lets explain what this means ..

if you open up a ftp program and login to ur site, notice beside the folders and files u have these rwrd, this stuff.. well these are called premissions, this means u can read , write to, excute those files or folders...

now let me explain how this is done. it is setup as Read Write Excute,

you have 3 groups in each of these Read has a Group , user, personal inside of it, and so do the others... so the 777 is a code for read , write , excute all. witch this is not good cause anyone can read write and excute this file from any where. 755 on the other hand lets the server read, write, and excute, but does not let the public.

most ftp programs have the options to change this , right click on the file or folder you want to chmod and click chmod, then change the # to what ya want , most sites will use diffrent ones for diffrent things, default files are 655 and folders are 755. I hope I have helped some

-MM
 
*mona lisa*
post May 10 2005, 04:07 PM
Post #6





Guest






Ooh, I see it now. Thanks for the info; it helped a lot. But, when I upload my file, i see this: "Parse error: parse error, unexpected T_STRING in /home/illiwed/public_html/enchantment/counter.php on line 5".

BTW, I used your code. I tried the other one and still got similar messages.
 
MarlboroMan
post May 10 2005, 04:40 PM
Post #7


Senior Member
***

Group: Member
Posts: 33
Joined: May 2005
Member No: 136,980



ok , well here is one that is more advanced that i wrote for my site many years ago.. it list total hits a day and all that same concept though




u still need a counter.txt on the root of the server and just put this code in count.php and call it in the index.php file like this



-MM
 
*mona lisa*
post May 10 2005, 05:33 PM
Post #8





Guest






I'm not sure, what the hosts are for...but the hits work! Yay, thanks so much!! <3

I guess I'll close this then.
Topic Closed
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: