Invalid content type: text/html

Invalid content type: text/html SearchSearch
Author Message
Arjun Kumar Parsi
New member
Username: Arjunpar

Post Number: 5
Registered: 04-2006
Posted on Friday, January 19, 2007 - 07:29 am:   

Hi ,
I tried 2way sms using the script which is given by you in the discussion Boards. Which is

<?php
$sender = $_GET['sender'];
$msgtext = $_GET['msgtext'];
header("Content-Type: text/plain");
print ("Hello $sender, thank you for your message\r\n");
?>

But when i use it, i try it i get reply sms
"Command not completed. Request returned invalid content type: text/html"

Plz help me what to do
Malcolm - Now Support
Moderator
Username: Malcolm

Post Number: 113
Registered: 12-2006
Posted on Monday, January 22, 2007 - 08:57 pm:   

Hi Arjun,

Move the "header" function to be the first line of the script.

--
Malcolm
Now Wireless Support