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 🙂

    You need to end each statement with a semicolon ( ; )

    $curl = curl_init() does not have a semicolon at the end.

      I tried that before but I got a message that said:
      Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\bohoo\index.php on line 29

      Anymore suggestions?

        That most likely means that your server does not have cURL installed or available to you.

          Oh yeah, that's right!
          I forgot to install cURL :o

          Thanks for reminding me, anakadote! 🙂

            Write a Reply...