This code works fine on xampp localhost fine but does not work on the server host.
Any idea what might be wrong?
$contact_no = $_POST['contact_no'];
$message = $_POST['text_message'];
$message = urlencode($message);
$url = 'http://trsms.krispal.in/API/pushsms.aspx?username=xxxx&password=xxxx&senderid=MYDMAL&mobile='.$contact_no.'&text='.$message;
$xml = file_get_contents($url);
echo $xml;
echo "<script>alert('Message has been successfully send...')</script>";