View Single Post
Old 07-14-2003, 03:09 PM  
bignosejimmy
Confirmed User
 
Join Date: Oct 2002
Location: B.C, Canada
Posts: 136
Quote:
Originally posted by lil2rich4u2


good idea ... i dont know PHP so i wouldnt know how to make it count hits other than stick a counter on it, or just check server stats for that page .... which can be done with any page i supose.

Anyone wanna show me a sample of how to make a php page check hits or requests?
I think this might be what your looking for. One of the traffic brokers gave me this php page to throw up on my server. All he did was link to this file on my server, and I would insert the url in this script that I wanted this file to redirect to.

<?php
$url[0]='http://INSERT YOUR URL HERE';
$url[1]='http://INSERT YOUR URL HERE';
srand((double)microtime()*1234567);
$turl=$url[intval(rand(0,1))];
header("location: $turl");
?>


Please correct me if this is incorrect
bignosejimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote