I solved this problem by using lynx with the exec variable instead of
get-url:

    exec = "lynx -dump -source www.whatever.com/test.php"

I didn't have PHP installed on the same server as Kannel, so I went the lynx
route, and it turned out to be simpler than using a PHP wrapper.  I used the
dump flag to output the results to stdout.  The source flag is because the
web page now has no HTML formatting, and this makes it put out exactly what
the PHP script intended.

I'd still like to know if there's a way to get linefeeds to show up on the
mobile phone when using get-url, but this is a low-kludge workaround.

By the way, I don't think I ever mentioned it, but I am running Kannel under
Cygwin on my laptop as I develop this.

Thanks for all your help.

Bill

Bogus Bill wrote:
> 
> 
> Arne K. Haaje wrote:
>> 
>> 
>> In the response, just use the linefeed symbol \n
>> 
>> Like when using PHP;
>> 
>> echo "Text on line 1\nText on line 2";
>> 
>> This would produce a message with two lines :)
>> 
>> 
> 
> This did not work for me.  I am running 1.4.1, and am using PHP on my
> website.  I want to give a list of scores, each separated by a linefeed. 
> Here is a code snippet:
> 
> while($row = mysql_fetch_array($result, MYSQL_ASSOC))
> {
>     echo "{$row['visitor']}  " .
>          "{$row['visitor_score']}  " . 
>          "{$row['home']}  " .
>          "{$row['home_score']}  " .
>          "{$row['quarter']}" .
>          "\n";
> } 
> 
> The lines still run together.
> 
> Thanks for your help.
> 
> Bill Rigdon
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-display-linefeeds-in-message-%28PHP%29--tp16540472p16628161.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to