I'm trying to load a page, to send an sms message (with mtnsms.com) with the following script:


if(!$page)
{
echo"
<html>
<body>";

if(!($myFile= fopen("http://www.mtnsms.com/session.asp?username=d.kingma@student.utwente.nl&password=pass","r")))

{
echo "Fout opgetreden<br> cookie not good";
exit;
}
else
{
echo "cookie send...";
}


echo "<form action="sms.php?page=done" method="post" name="newMsg">
enter a mobile number: <input name="smsToNumbers" size="15" value="">
<textarea name="smsMessage" rows="4" cols="40" wrap="soft" ></textarea>

<input TYPE="HIDDEN" name="lenSSig" value="6">
<input TYPE="HIDDEN" name="lenLSig" value="9">
<input TYPE="HIDDEN" name="lenSysSig" value="11">
<input type="submit" value="go">
</form>";


}

if($page=="done")
{
$smsMessage= ereg_replace(" ", "+", $smsMessage);
if(!($myFile= fopen("http://www2.mtnsms.com/sms/xsms.asp?smsToNumbers=$smsToNumbers&smsMessage=$smsMessage","r")))
{
echo "Error<br> SMS message not send!";
exit;
}
else
{
echo "SMS send";
}
}


But it fails to send the message:

Warning: fopen("http://www2.mtnsms.com/sms/xsms.asp?smsToNumbers=31628520184&smsMessage=Hey+Dude ","r") - No error in c:mijn documentenshopsms.php3 on line 57
Error
Message not send