-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Php example not working #6
Comments
Hi! I have just tried to run the php test with the latest GIT:
And it works. Does Are you able to |
Thanks for the reply.. Finally i found the solution... I changed the code from And its work perfectly. The problem caused by the & might not be handled properly. |
hum, you should not have to do this, as those are the default values:
What version of php to you use ? Here, I use:
|
I'm using php 5.3. I fixed my problem by referring this note on php.net http://php.net/manual/en/function.http-build-query.php#102324 |
Oh, ok, you are right, "&" is not the default in php 5.3. |
Welcome. This API really great. Thank you. |
Hi..
i tested on my localhost.. chatterbotapitest.php.. but its not working... no reply form the bot..
Then, i modified the function to see the response form fopen...
$context = stream_context_create($contextParams);
$fp = fopen($url, 'rb', false, $context);
$response = stream_get_contents($fp);
echo $response;
i got the following response:
"DENIED +3000_cbfull"
The text was updated successfully, but these errors were encountered: