MSN hello world [unworking]
Hello
I got a verified msn addres: ***@gmail.com.
I also activated it on the bot page (msn)
I uploaded bot.php to my webhost.
When i start talking to my bot in msn it doesn't say anything..
I onley see it's typing but it doesn't say anything.
I used this script:
<?php
switch ($REQUEST['step']) {
case 1:
echo "Hi, what's your name?";
break;
case 2:
echo "Hi " . $REQUEST['value1'] . ", where do you live?";
break;
case 3:
echo "Well, welcome to this hello world bot, " .
$REQUEST['value1'] . "
from " . $REQUEST['value2'] . ".";
break;
} ?> .. Now i tryed with a single line like this: "Hello"
I saved as bot.php and uploaded to my webhost.
Now it does say hello..
So why does the script not work??
this is my screen name:
***@bot.im
Hope some1 can help me!
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Adam Kalsey on 29 Jan, 2010 05:45 PM
If I send a message to your bot at ***@gmail.com I get a
response of Welkom bij deze 24/7. Binnenkort meer mogelijkheden
beschikbaar!
This is the same text your URL returns if I visit it in a web browser.
Is this not the text you are expecting to receive?
3 Posted by gunnerx19 on 29 Jan, 2010 06:35 PM
Yeh like i said that script works.
But this one doesn't :
<?php
switch ($REQUEST['step']) {
case 1:
echo "Hi, what's your name?";
break;
case 2:
echo "Hi " . $REQUEST['value1'] . ", where do you live?";
break;
case 3:
echo "Well, welcome to this hello world bot, " . $REQUEST['value1'] . "
from " . $REQUEST['value2'] . ".";
break;
} ?>
Please try again with ***@gmail.com i got that script running now.
Support Staff 4 Posted by Adam Kalsey on 29 Jan, 2010 07:00 PM
Your server isn't running PHP code. When I fetch that url, I get the
PHP code, not the output of the code. Check with your host to see if
they're able to host PHP.