View Full Version : Please help with coutner
Casper
09-02-2006, 03:36 PM
Hey i downloaded a site counter from http://www.proxy2.de/ and i need help installing it, completly lol can anyone help please?
blackpepper
09-02-2006, 03:52 PM
what are you stuck on? which counter did you download?
Casper
09-03-2006, 10:10 AM
I downloaded the first animated counter, and also the top downloads 2.0, i cant install them i dont understand it
erisco
09-03-2006, 10:22 AM
Casper, did you download the PHP one? Does it come with instructions? What are those instructions? How are we supposed to know how to set it up either?
Casper
09-03-2006, 11:06 PM
ya its php heres instructions
/**
* ----------------------------------------------
* Simple Animated Counter PHP 1.1
* Copyright (c)2001 Chi Kien Uong
* URL: http://www.proxy2.de
* ----------------------------------------------
*/
Requirements:
- PHP
Installation:
Set the permissions for all *.php files to mode 755
and give write permissions to the directory:
- pages - 777 (drwxrwxrwx) (directory)
Usage:
<?php
include_once "./acounter.php";
$ani_counter = new acounter();
echo $ani_counter->create_output("page");
?>
page = the page you want to track
erisco
09-03-2006, 11:11 PM
Upload all the PHP files to say, a new directory called counter. Now through your FTP client, select all those PHP pages and make sure their permissions are set to 755. That is done through CHMOD. Next also use CHMOD to change the directory permissions (our directory is counter) to 777.
Now that that is done, you need to make sure the page using the counter ends in a .php extension rather than .html. After that you need to put the PHP code they provided into the page you want to use the counter on, and change page in "page" to the name of the page you want to track (which is probably your index page).
Casper
09-05-2006, 02:18 PM
Ya my index (main page) is php so ill try this
Casper
09-05-2006, 03:38 PM
It says my sever doesnt support file permission changes
erisco
09-05-2006, 03:42 PM
try it anyways, as long as PHP is allowed to read and write from your directory it will be fine. Your host most likely doesn't allow chmod changes because they already have the permissions worked out.
Casper
09-06-2006, 01:45 PM
Would i be able to do this with smartftp?
Would i be able to do this with smartftp?
absolutely!
right click the file on your server, click on Properties/CHMOD and select the correct file permissions by selecting/deselecting the read/write/execute attributes..
Casper
09-06-2006, 04:26 PM
Well i do that and i get this message at the bottom
[05:23:07] 500 'SITE CHMOD 755 acounter.php': command not understood
erisco
09-06-2006, 04:34 PM
contact your web service. I thought you already mentioned you had, and they said they did not allow permission changes?
Have you actually tried the PHP without the permission changes? Take things one step at a time, don't jump to conclusions.
Casper
09-06-2006, 09:30 PM
Yes i didnt contact them and they said i can change it but i really shouldnt it will mess my stuff up what do you meanb have i tried it?
erisco
09-06-2006, 09:42 PM
As in, don't bother changing permissions until you know you need to. The PHP may already work as it is. Try out the counter.
Casper
09-06-2006, 10:10 PM
nah dont work i get this
Warning: main(./acounter.php) [function.main]: failed to open stream: No such file or directory in C:\Domains\caspersmusicvideos.com\wwwroot\index.php on line 70
Warning: main() [function.include]: Failed opening './acounter.php' for inclusion (include_path='.;c:\php4\pear') in C:\Domains\caspersmusicvideos.com\wwwroot\index.php on line 70
Fatal error: Cannot instantiate non-existent class: acounter in C:\Domains\caspersmusicvideos.com\wwwroot\index.php on line 71
erisco
09-07-2006, 02:31 PM
Okay, but listen to the errors. Does C:\Domains\caspersmusicvideos.com\wwwroot\acounter.php exist on your computer? If not, you need to give the correct path to where that file is.
Casper
09-07-2006, 04:09 PM
hey bro do you have msn , i did add you as a buddy lol and this is where it is on my ftp
ftp://caspersmusicvideos.c@ftp.caspersmusicvideos.com/wwwroot/Counter/acounter.php
So should i just put that
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.