• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

php function fsockopen() don't work in 7.5.4

E

esupport.org.ua

Guest
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);
}
?>
 
No answer? No solution?

Ok, I tell on WHT forum about plesk and redhat9
 
Back
Top