[請益] socket的問題
問一個很笨的問題 我想連上
group.nctu.edu.tw:119
是直接用
$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_connect($socket,'group.nctu.edu.tw',119);
就行了嗎?
因為他一直出現以下錯誤,查了相關資料,有人說是權限問題,但沒看到解法 -.-"
不知有沒有人 可以給我一個方向 或網址 讓我慢慢去看相關資訊 感恩
Warning: socket_connect() [function.socket-connect]: unable to connect [110]:
Connection timed out in /home/a4784349/public_html/news/news.php on line 5
Warning: socket_read() [function.socket-read]: unable to read from socket
[107]: Transport endpoint is not connected in
/home/a4784349/public_html/news/news.php on line 6
Warning: socket_write() [function.socket-write]: unable to write to socket
[32]: Broken pipe in /home/a4784349/public_html/news/news.php on line 21
Warning: socket_read() [function.socket-read]: unable to read from socket
[107]: Transport endpoint is not connected in
/home/a4784349/public_html/news/news.php on line 26
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.70.232.118
※ 編輯: clv 來自: 219.70.232.118 (05/20 13:22)
→
05/20 15:13, , 1F
05/20 15:13, 1F
→
05/20 16:38, , 2F
05/20 16:38, 2F
→
05/20 16:54, , 3F
05/20 16:54, 3F
→
05/20 17:30, , 4F
05/20 17:30, 4F
→
05/20 18:59, , 5F
05/20 18:59, 5F
→
05/20 22:30, , 6F
05/20 22:30, 6F
→
05/21 10:45, , 7F
05/21 10:45, 7F
→
05/21 20:02, , 8F
05/21 20:02, 8F
討論串 (同標題文章)