testers Posted July 13, 2010 Share Posted July 13, 2010 hello friends, how can i create a robot for visit a page several times? please show a example for coding with PHP Very Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/ Share on other sites More sharing options...
xcoderx Posted July 13, 2010 Share Posted July 13, 2010 a robot or ya want to keep trackon ur visitors by their ip? Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085225 Share on other sites More sharing options...
testers Posted July 13, 2010 Author Share Posted July 13, 2010 no , i want to know how to create a robot for visit a page with PHP, coding of this program is my aim. Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085236 Share on other sites More sharing options...
xcoderx Posted July 13, 2010 Share Posted July 13, 2010 guess for that you got to have knowledge on curl aswell ? Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085243 Share on other sites More sharing options...
ignace Posted July 13, 2010 Share Posted July 13, 2010 no , i want to know how to create a robot for visit a page with PHP, coding of this program is my aim. Something along the lines of: function get_all_href($URL,$recursive=true){ $links=array(); $html=new DOMDocument(); if($html->load($URL)){ $xpath=new DOMXPath($html); foreach($xpath->query('//a') as $a){ $links[]=$a->getAttribute('href'); if($recursive) $links_r=__FUNCTION__($a->getAttribute('href'),$recursive); $links+=$links_r; } } return $links; } foreach(get_all_href('http://domain/path') as $href){ echo $href,'<br>'; } Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085245 Share on other sites More sharing options...
testers Posted July 13, 2010 Author Share Posted July 13, 2010 no, my friend for example i have a page with counter ( counter.php ) each time you open this page it's add a number to visitors number. i want a script that when execute it, visit the counter.php for add a number to visitors number but no one time for example 10 time. like a visitor robot that visit pages for add number of visits of page. thanks Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085256 Share on other sites More sharing options...
Wolphie Posted July 13, 2010 Share Posted July 13, 2010 http://php.net/manual/en/function.include.php include 'counter.php'; Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085257 Share on other sites More sharing options...
testers Posted July 13, 2010 Author Share Posted July 13, 2010 oh, for example one site have a counter, i want to visit that site for 500 time each time my script execute for that site counter add 500 number to that. Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085266 Share on other sites More sharing options...
xcoderx Posted July 13, 2010 Share Posted July 13, 2010 u talking about something like what we call iframe ddos? Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085269 Share on other sites More sharing options...
testers Posted July 13, 2010 Author Share Posted July 13, 2010 i want a code for refresh a URL for several times Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085335 Share on other sites More sharing options...
testers Posted July 13, 2010 Author Share Posted July 13, 2010 any idea? :'( Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085423 Share on other sites More sharing options...
xcoderx Posted July 13, 2010 Share Posted July 13, 2010 <html> <head> <meta http-equiv=refresh content= "5"> </head> <iframe src="http://somesite.com" width="100" height="100" /></iframe> </html> Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085504 Share on other sites More sharing options...
testers Posted July 14, 2010 Author Share Posted July 14, 2010 i want to do it for 3000 time !!! Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085695 Share on other sites More sharing options...
Pikachu2000 Posted July 14, 2010 Share Posted July 14, 2010 Well, write the code you intend to use, then post it here if you have problems. Don't come here expecting someone else to just write it for you on demand. Quote Link to comment https://forums.phpfreaks.com/topic/207579-how-to-create-a-visotor-robot/#findComment-1085700 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.