• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

Curl gurus please

Started by mikejd, January 27, 2022, 08:31:40 PM  ( Read 7,638 times )

mikejd

I have used the following curl script to load the content of a file into a web page. It has been working fine for a long while but now doesn't.

[$ch = curl_init();
$timeout = 5; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, WB_URL.'/pages/blocks/meeting.php');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);


Can anyone advise what needs changing. I am assuming there has been some change in syntax. Thanks

    \n\n