Hi, I am trying to call a API from within PHP
I used to use :-
$to_new = "44".$mobile2[1].$mobile2[2].$mobile2[3].$mobile2[4].$mobile2[5].$mobile2[6].$mobile2[7].$mobile2[8].$mobile2[9].$mobile2[10].$mobile2[11].$mobile2[12];
$msg_new = preg_replace('/ /', '%20', $message2);
$url = "http://api.mobill.net/sendsmsV3.pl?phone=".$to_new."&mesgtext=".$msg_new."&id=11111&pwd=11111yue&header=".$mobile."";
$handle = fopen("$url", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
But i have moved servers and i keep getting errors? I dont want any response i just need to call execute a http:// from within php!