Jump to content

Error


Scummy12

Recommended Posts

Can someone please tell me why I am getting an error with this script?

<?php

$count = 0;
$num = 25;
while($count<$num)
{
$curl = curl init();
$site = "www.google.com";
curl_resptop($curl, curlopt_URL, $site);
curl_setopt($curl, curlopt_returntransfer,1);

$return = curl_exec($curl);

curl_close($curl);

echo $count . "-";
if ($return)
	echo "It Worked"
$count++;
}


?>

Link to comment
https://forums.phpfreaks.com/topic/201909-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.