PLEASE HELP - I'M IN HOT WATER

Hi
Everything was working fine up until I noticed a key routine was not. It seems to have stopped a couple months back.
I have a php form
Does a query then loops through each record.
For each record it requires I call an external independent procedure which processes the data while moving onto the next record in the loop.
I am using json with file_get_contents
It suddenly stopped working

I have tested with sc_redir() and then using an echo with file_get_contents both of which work.
But if I use either of the 2 options above (echo or file_get_contents) it does not continue with the loop.

Please help, what is missing.

Below is some of the code which should work.
$ProcessServer=“https://secure.myurl/sample/sample.php”;
$StartServer=“https://secure.myurl/start/”;
$eventID=’’;
$SMSid=’’;
$url=“https://secure.myurl/campaign/campaign.php?agentID=1234&phone=27726850584&peccr_code=CSI&accountID=27726850584&sessionID=ABC1234&campaign=1&PAD=PAD&ProcessServer=".$ProcessServer."&StartServer=".$StartServer."&eventID=".$eventID."&SMSid=”.$SMSid;

$json = file_get_contents($url);
$data = json_decode($json);

sorry maybe a bit late but… is that a copy paste from your code?.. because if it is i think your problem is the quote at the end of the $url