Chat Bot working?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Or maybe ur host has fsockopen disabled?
    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


      #17
      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


        #18
        Originally posted by Leviathan73 View Post
        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;        }  } 
        try to register at pandorabots.com then make a bot, publish it then get the bot id then copy and paste it to your script..If your bot still answers nothing, maybe ur host really has disabled fsockopen..
        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


          #19
          my files are in php, pandorabots.com me create bot id in html. But if you are disabled, how do I enable them?

          Comment


            #20
            Originally posted by Leviathan73 View Post
            my files are in php, pandorabots.com me create bot id in html. But if you are disabled, how do I enable them?
            why dont you do things step by step.

            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 you
            LDSWAPWORLD 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


              #21
              in my script I have the php.ini file does not work because it's missing? I will try to have php.ini file, you can upload in this post, please, so the exhaust?

              Comment


                #22
                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 ""
                and
                PHP Code:
                $reply ""

                Comment

                Working...
                X