On Mon, Sep 8, 2008 at 5:27 PM, Têvi Rodrigue Lawson
<[EMAIL PROTECTED]> wrote:
> The problem : as reply, kannel send this message "Result could not be
> represented as an sms message"

This means that Kannel can not fetch message text from your phenom.php script.

It seems to me that the $_REQUEST['prenom'] is not set, and your
script doesn't return any string.
Change the $_REQUEST['prenom'] with $_GET['prenom']


Change your script like this:

<?php
  $List_pren=array('prenom1'=>'signif1','prenom2'=>'signif2');

 if(isset($_GET['prenom'])
 {
//  echo $List_pren[$_GET['prenom']];

//for testing purposes
 echo " Hi ".$_GET['prenom']."! How are you?";
 }
 else
 {
   echo "No name specified";
 }
?>

If this test passes if send sms "prenom Tevi" and you get reply sms
"Hi Tevi! How are you?" and if you send "prenom" and you get reply "No
name specified", then the sms handling is good.

Comment out the "echo $List_pren[$_GET['prenom']]" line, and try
sending SMSs "prenom prenom1" and "prenom prenom2" you will get reply
SMSs "signif1" and "signif2" repectivly.


HTH, Jovan

Reply via email to