1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

php function fsockopen() don't work in 7.5.4

Discussion in 'Plesk for Linux - 8.x and Older' started by esupport.org.ua, Nov 23, 2005.

  1. esupport.org.ua

    esupport.org.ua Guest

    0
     
    Hi

    I am try use fsockopen() but got a BUG:
    Warning: fsockopen(): php_hostconnect: connect failed in /home/***/test.php on line 2

    Warning: fsockopen(): unable to connect to 127.0.0.1:80 in /home/***/test.php on line 2
    Operation now in progress (115)

    psa version is: 7.5.4-rh9.build75050824.12
    php version is: 4.3.2-psa.rh9.1

    Not a fresh version php, isn't ? :)

    Use google, I found this bug:
    http://bugs.php.net/bug.php?id=21653 and http://bugs.php.net/bug.php?id=24785

    Where can recive the php rmp for ples without this bug?


    Oh, yea! I don't forget post php script code:

    <?php
    $fp = fsockopen ("127.0.0.1", 80, $errno, $errstr, 60);
    if (!$fp) {
    echo "$errstr ($errno)<br>\n";
    } else {
    fputs ($fp, "GET / HTTP/1.0\r\nHost: localhost\r\n\r\n");
    while (!feof($fp)) {
    echo fgets ($fp,128);
    }
    fclose ($fp);
    }
    ?>
     
  2. esupport.org.ua

    esupport.org.ua Guest

    0
     
    No answer? No solution?

    Ok, I tell on WHT forum about plesk and redhat9
     
Loading...