![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Domain name | bang_dba | SUN Solaris | 2 | 08-30-2008 10:41 AM |
| Kudda has successfully solved the downloading problems for numerous video web | angelstar | UNIX and Linux Applications | 0 | 04-10-2008 06:41 AM |
| can this been solved with awk and sed? | mskcc | Shell Programming and Scripting | 16 | 11-10-2005 12:52 PM |
| Xdmcp, dns, exceed broadcast solved BUT | kymberm | IP Networking | 3 | 02-25-2003 10:47 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
HostnameLookup is set to on, but the situation is the same.
In error_log I don't see anything weird, except: shmget() failed: Cannot allocate memory Failed to start up concurrent users module! Is this a possible cause ? Last edited by Sergiu-IT; 04-09-2008 at 08:37 AM.. |
|
|||||
|
Quote:
Code:
<?php
$host= "www.unix.com";
$sc = fsockopen($host,80) or die("Error creating socket");
$out = "GET / HTTP/1.1\r\n";
$out.= "Host: $hostrn";
$out.= "Connection: Close\r\n\r\n";
fwrite($sc, $out);
fclose($sc);
?>
The error that I get in the browser is this: Code:
Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in /home/test/public_html/test.php on line 3 Warning: fsockopen() [function.fsockopen]: unable to connect to www.unix.com:80 (Unknown error) in /home/test/public_html/test.php on line 3 Error creating socket On another server it works perfectly - the diference is that the apache version is 1.3, not 2.0. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|