Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
php script that visits a range of dynamic urls
Old 04-07-2010, 03:59 PM php script that visits a range of dynamic urls
Junior Talker

Posts: 3
Trades: 0
Can you create a php script that executes or visits a set of dynamic urls such as

http://www.mysite.com/blah&u=y
http://www.mysite.com/blah&u=y+1
http://www.mysite.com/blah&u=y+2
http://www.mysite.com/blah&u=y+3
.
.
.
http://www.mysite.com/blah&u=x



a range y though x? and with a delay of n seconds between urls?

thanks

PS i know it's something link this:
http://www.askapache.com/php/curl-multi-downloads.html

but how do you do it for an arbitrary range array?
MyMarket is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-07-2010, 04:09 PM Re: php script that visits a range of dynamic urls
nayes84's Avatar
Extreme Talker

Latest Blog Post:
Difference between ASP And JSP
Posts: 232
Name: John
Location: Tokyo
Trades: 0
If you need just to open url why use advanced curl. I like the simple and easy get_file_contents function
PHP Code:

for($i=$y;$i<$x;$i++)
{
    
$page=file_get_contents('http://www.mysite.com/blah&u=' $i);
    
//echo $page; //display the page contents

    
sleep($n);

__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

if(I'm("Helpful")) Add_Talkupation("nayes84");
nayes84 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to php script that visits a range of dynamic urls
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.65109 seconds with 12 queries