ujanjan / phurl

Automatically exported from code.google.com/p/phurl
0 stars 0 forks source link

Suggested code for statistics #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I will suggest other statistics changes. this would be for the redirect.php file

http://pastebin.com/yGyUJynR

Original issue reported on code.google.com by itspa...@gmail.com on 23 Jul 2010 at 8:38

GoogleCodeExporter commented 8 years ago
this would allow for http://site.com/12521~
and it would show you stats for it

Original comment by itspa...@gmail.com on 23 Jul 2010 at 8:46

GoogleCodeExporter commented 8 years ago
due to some issues i couldnt get ~ to work
so i use -
http://pastebin.com/TFLim7YV

which requires editing .htaccess and index.php
more code to come

Original comment by itspa...@gmail.com on 25 Jul 2010 at 3:02

GoogleCodeExporter commented 8 years ago
sorry no change to .htaccess just a change to index.php 
http://pastebin.com/YkVWfLk7
and the redirect.php
http://pastebin.com/bGJRKr50

trying to figure out when you access a preview
http://test.com/c123-

it displays Resource id #7 

Original comment by itspa...@gmail.com on 25 Jul 2010 at 2:11

GoogleCodeExporter commented 8 years ago
ok corrected redirect.php
http://pastebin.com/36C8ujUH

right now it just tracks any visits, if you want it to be more unique hits, 
something else will have to be put in place
and the sql to alter the urls table is as such 
http://pastebin.com/mtpeWbvQ

Original comment by itspa...@gmail.com on 25 Jul 2010 at 2:18

GoogleCodeExporter commented 8 years ago
Thanks for the help, stats will be added in the future.

Original comment by hcblahb...@gmail.com on 26 Oct 2010 at 8:59