troubleshooting Question

How increase number and repeating script?

Avatar of wickeddd
wickeddd asked on
PHP
1 Comment1 Solution277 ViewsLast Modified:
Hello guys, simple and easy question

need increase limit + 10 in $url and repeat whole script untill will be http://www.blabla.net/index.php?limit=500'
error_reporting (E_ALL ^ E_NOTICE);
 
include 'functions.php';
 
// Connect to this url using CURL
$url = 'http://www.blabla.net/index.php?limit=10';
 
$data = LoadCURLPage($url);
 
// Extract information between STRING 1 & STRING 2
 
$string_one = 'a';
$string_two = 'b';
$string_three = 'c';
$string_four = 'd';
 
$pos = 0;
 
while(strlen($data) > 10)
{
	$info = extract_unit($data, $string_one, $string_two, $pos);
	$info2 = extract_unit($data, $string_three, $string_four, $pos);
 
	if(strlen($info) < 2) break;
	if(strlen($info2) < 2) break;
 
	$data = substr($data,$pos);
 
	echo $info.'and'.$info2.'<br>';  
}
?>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros