If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Animated Counter problem  XML
Forum Index » Support Forum
Author Message
ordhor
Newbie

Joined: 23/10/2002 02:18:26
Messages: 1
Offline


/**
* ----------------------------------------------
* 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




well, i try to put the php code in a html page and i can't make it work (how do i make it work in a html page?).

and what must i do so i can give a counter to my /~users (kinda like <img src=" "> ) ?

echo $ani_counter->create_output("page");

must make a different file for each page/user ?
Anonymous



Just rename the html file to a php file i.e myhomepage.html --> myhomepage.php

Then the php code will work
Anonymous



I did a work around on the daily visitor counter so that it could be used with javascript and pulled into html - is that what you are looking for?
Anonymous



I guess I should clarify that better - are you looking for a rewrite of the animated counter for using javascript with html?
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum