sorvigolova3
New Member
- Messages
- 2
- Reaction score
- 0
- Points
- 0
Hello! I'm trying to use PEAR mail functionality on my site but it seems like the PEAR Mail is not installed on free accounts by default. How can I install additional PEAR packages?
<p>Failed to connect to mail.autopia.x10hosting.com:25
[SMTP: Failed to connect socket: fsockopen()
[<a href='function.fsockopen'>function.fsockopen</a>]:
unable to connect to mail.autopia.x10hosting.com:25
(php_network_getaddresses: getaddrinfo failed:
Name or service not known) (code: -1, response: )]</p>
fsockopen() is disabled on the free servers for security reasons.
<?php
function getTheNews() {
$fp = fsockopen("www.cnn.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET / HTTP/1.1\r\n";
$out .= "Host: www.cnn.com\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
}
getTheNews() ;
?>
unable to connect to mail.autopia.x10hosting.com:25
(php_network_getaddresses: getaddrinfo failed:
Name or service not known) (code: -1, response: )]
anyobody able to use fsocketopen on Absolut?