Make WordPress Core


Ignore:
Timestamp:
12/09/2004 12:25:07 AM (21 years ago)
Author:
saxmatt
Message:

Don't show errors if we can't fsockopen a server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r1921 r1926  
    818818                    $port    = 80;
    819819                    $timeout = 3;
    820                     $fp = fsockopen($host, $port, $err_num, $err_msg, $timeout);
     820                    $fp = @fsockopen($host, $port, $err_num, $err_msg, $timeout);
    821821                    if( $fp ) {
    822822                        fputs($fp, $headers );
     
    946946
    947947    // Try to connect to the server at $host
    948     $fp = fsockopen($host, $port, $errno, $errstr, 3);
     948    $fp = @fsockopen($host, $port, $errno, $errstr, 2);
    949949    if (!$fp) {
    950950        // Couldn't open a connection to $host;
Note: See TracChangeset for help on using the changeset viewer.