Hello all!
I'm very, very new in this PHP stuff [Just started this night!]
And I was playing around when I got this error message:
Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\bohoo\index.php on line 30
<?php
set_time_limit(0);
function utime() {
$time = explode(" ", microtime());
$usec = (double) $time[0];
$sec = (double) $time[1];
return $sec + $usec;
}
$start = utime();
###############################################################################
?>
<?php
$count = 0;
$num = 15;
while ($count < $num) {
$curl = curl_init()
$site = "http://xxx.xxx.xxx/";
cutrl_setopt($curl, CURLOPT_URL, $site);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$return = curl_exec($curl);
curl_close($curl);
echo $count . " - ";
if ($return)
echo " Blah Blah <br>";
$count++;
}
################################################################################
$end = utime();
$run = $end - $start;
echo " <br> Page created in: " .
substr($run, 0, 5) . " seconds.";
?>
<br>
Line 30 is --> $site = "http://xxx.xxx.xxx/";
Can anyone tell me how to fix this?
I really need help
I would appreciate any help