CRM PHP Example Not Working

CRM PHP Example Not Working

Hello,

I am trying the PHP example code and getting a blnk page, any suggestions? Please help as I am using trial to see if I can get it integrated for company with internal systems and on a tight timetable before trial ends. I have attached an image of the output I get.

 header("Content-type: application/xml");
             
      $token="AUTHTOKEN"; <--- I replaced this with the token I got from CRM API Generate Token
              $param= "authtoken=".$token."&scope=crmapi";
              $ch = curl_init();
              curl_setopt($ch, CURLOPT_URL, $url);
              curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
              curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
              curl_setopt($ch, CURLOPT_TIMEOUT, 30);
              curl_setopt($ch, CURLOPT_POST, 1);
              curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
              $result = curl_exec($ch);
              curl_close($ch);
  //echo "";
              echo $result;
              //return $result;