Jump to content
The Uniform Server Community

Adding PHP Pageviews script / correct URLS?


crooms
 Share

Recommended Posts

Hi, total beginner here

 

I am doing an assignment for my Web Implementation project and am running a website on Uniserver. One of the things i have to achieve is to add page statistics to my site. i am allowed to use a 3rd party solution, and have used cdub's website stats.

 

I've created the db and table in MySQL, no problem. However the logs.php and pageviews.php don't seem to be working correctly. They open without any 404 message etc, and the logs.php does display 1 user looking at 1 page. This is incorrect however as no matter how many times i look at all my pages, the figure never changes. The pageviews page opens but does not display anything, even the tables it is meant to draw.

 

My best guess is that i am not entering my site URL properly, or something relating to that. At the moment i have it set to $cdub_site = 'http://localhost:80/Studentunion' in the cdub config file as this is the root folder of my website (inside the udrive/www). The php files are all in the Studentunion folder too (i dont know if this is correct).

 

 

Any help in getting it working properly would be great, and although this isnt specifically a Uniserver issue i would appreciate any help. If anyone is looking at it, the staff folder page is htaccess protected, and i cant get the .htpasswd to work either.

 

Thanks from the ultimate newbie

 

 

Attached is my www folder and the sql table file.

www.zip

instructions.txt

sql.txt

Link to comment
Share on other sites

Hi

 

I wonder if it's because your viewing the page from 1 ip. So no matter how many times you refresh it won't update the figure because your from the same ip.

 

That would be my guess?

ATOMIC Web Hosting 2007 - 2011

Shared Hosting - Reseller Hosting - Dedicated Servers - Virtual Private Servers (Request Dedicated/VPS Servers via E-mail)

E-mail: sales@atomicwebhosting.com Website: http://www.atomicwebhosting.com/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...