Or maybe ur host has fsockopen disabled?
Chat Bot working?
Collapse
X
-
My Blog: http://jhommark.blogspot.com
My Facebook: http://www.facebook.com/jhommark
My Official Site: http://www.undergroundweb.tk
My Community Site: http://undergroundwap.xtreemhost.com
-
I do not know, I have this function in the file core.php
PHP Code://////////////////////////////////////////////////RAVEBABEfunction PostToHost($host, $path, $data_to_send){ $result = ""; $fp = fsockopen($host,80,$errno, $errstr, 30); if( $fp) { fputs($fp, "POST $path HTTP/1.0\n"); fputs($fp, "Host: $host\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\n"); fputs($fp, "Content-length: " . strlen($data_to_send) . "\n"); fputs($fp, "Connection: close\n\n"); fputs($fp, $data_to_send); while(!feof($fp)) { $result .= fgets($fp, 128); } fclose($fp); return $result; } }
Comment
-
Originally posted by Leviathan73 View PostI do not know, I have this function in the file core.php
PHP Code://////////////////////////////////////////////////RAVEBABEfunction PostToHost($host, $path, $data_to_send){ $result = ""; $fp = fsockopen($host,80,$errno, $errstr, 30); if( $fp) { fputs($fp, "POST $path HTTP/1.0\n"); fputs($fp, "Host: $host\n"); fputs($fp, "Content-type: application/x-www-form-urlencoded\n"); fputs($fp, "Content-length: " . strlen($data_to_send) . "\n"); fputs($fp, "Connection: close\n\n"); fputs($fp, $data_to_send); while(!feof($fp)) { $result .= fgets($fp, 128); } fclose($fp); return $result; } }
Last edited by kiLLeR-eyEd_14; 02.09.09, 09:25.My Blog: http://jhommark.blogspot.com
My Facebook: http://www.facebook.com/jhommark
My Official Site: http://www.undergroundweb.tk
My Community Site: http://undergroundwap.xtreemhost.com
Comment
-
Originally posted by Leviathan73 View Postmy files are in php, pandorabots.com me create bot id in html. But if you are disabled, how do I enable them?
setup your bot at pandorabots.com (e.g. make keywords or questions that your bot can answer). if you didnt make anything there then it will not really work.
copy the id to your script then test it.
whats your host/server btw?
if you get these errors
PHP Warning: fopen(http://www.example.com): failed to open stream: HTTP request failed!
fsockopen(): unable to connect to …
file_get_contents(): failed to open stream: HTTP request failed!
PHP Warning: main(): Failed opening ‘http://www.example.com/index.html’ for inclusion …
PHP Warning: include(/usr/local/index.php): failed to open stream: No such file or directory in …
then maybe its disabled.
to enable it, put
allow_url_fopen = On
in your php.ini file which is in your web directory in your host control panel.
if it still doesnt work, the problem maybe youLDSWAPWORLD sigpic
site closed.
im busy with other things in life like facebook , send me PM so i can add you
www.pinoySG.com
don't ask for help if you're not even helping yourself!
i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
Comment
-
questions and answers from the chat bot is written here?
PHP Code:// Extract the custid
if ($pos === false) {
$custid = "";
} else {
$pos += 8;
$endpos = strpos($result, "\"", $pos);
$custid = substr($result, $pos, $endpos - $pos);
}
// Extrat <that> - questa è la risposta da parte delle Pandorabot
$pos = strpos($result, "<that>");
if ($pos === false) {
$reply = "";
PHP Code:$custid = "";
PHP Code:$reply = "";
Comment
Comment