Seperate enclosure URLs by 1 space, not 3.

git-svn-id: https://develop.svn.wordpress.org/trunk@1800 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Donncha O Caoimh 2004-10-14 14:22:40 +00:00
parent 8485291bd9
commit 64c7ac39be
1 changed files with 2 additions and 6 deletions

View File

@ -390,13 +390,9 @@ $now_gmt = current_time('mysql', 1);
$headers = "HEAD $file HTTP/1.1\r\nHOST: $host\r\n\r\n";
$port = 80;
$timeout = 3;
// Open a socket connection to the host
$fp = fsockopen($host, $port, $err_num, $err_msg, $timeout);
$fp = fsockopen($host, $port, &$err_num, &$err_msg, $timeout);
if( $fp ) {
// Send request for the page
fputs($fp, $headers );
// Get the response
$response = '';
while (!feof($fp))
$response .= fgets($fp, 2048);