四虎影视在线影院在线观看,小s货再浪些再咬紧点h,国产精品水嫩水嫩,97精产国品一二三产区

Board logo

標題: [求助] fsockopen請求另外一臺服務(wù)器返回500錯誤。 [打印本頁]

作者: czd327917086    時間: 2013-6-4 09:33     標題: fsockopen請求另外一臺服務(wù)器返回500錯誤。

  1.                 $fp = @fsockopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout);
  2.                 if(!$fp){
  3.                         return '';//note $errstr : $errno \r\n
  4.                 }else{
  5.                         //stream_set_blocking($fp, $block);
  6.                         //stream_set_timeout($fp, $timeout);
  7.                         @fwrite($fp, $out);
  8.                         while(!feof($fp)){
  9.                                         $html[] = fgets($fp, 128);
  10.                            }
  11. print_r($html);die;
復(fù)制代碼


Array ( [0] => HTTP/1.1 500 Internal Server Error [1] => Server: nginx/0.8.54 [2] => Date: Tue, 04 Jun 2013 01:28:36 GMT [3] => Content-Type: text/html [4] => Connection: close [5] => X-Powered-By: PHP/5.2.17 [6] => )


我用wget 就可以。以前裝wordpress的時候也老是提示500錯誤。請大俠教教我是怎么回事。謝謝了。
作者: admin    時間: 2013-6-4 17:11

這個是被訪問的那臺機器原因吧?




歡迎光臨 WDlinux官方論壇 (http://cd-genova.com/bbs/) Powered by Discuz! 7.2