[請益] socket的問題

看板PHP作者 ( 假日假日假日...)時間12年前 (2012/05/20 13:21), 編輯推噓0(008)
留言8則, 3人參與, 最新討論串1/2 (看更多)
問一個很笨的問題 我想連上 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
應該是被 group.nctu.edu.tw 擋住了
05/20 15:13, 1F

05/20 16:38, , 2F
那有人知有什麼方法可以連news group嗎?
05/20 16:38, 2F

05/20 16:54, , 3F
寫信到 group.nctu.edu.tw 請他們將你的 IP 加到名單中
05/20 16:54, 3F

05/20 17:30, , 4F
奇怪 為啥連PORT80都不能用 我用DOC去LOAD他的XML可以
05/20 17:30, 4F

05/20 18:59, , 5F
哇哩咧 socket_read 會超時哩
05/20 18:59, 5F

05/20 22:30, , 6F
發現只能連port 80的 其它port都連不上 任何地方都不行
05/20 22:30, 6F

05/21 10:45, , 7F
要有 *.twbbs.org 的 domain 才可以。
05/21 10:45, 7F

05/21 20:02, , 8F
可 我連 news.php.net 119也不行哩
05/21 20:02, 8F
文章代碼(AID): #1Fk7y_H1 (PHP)
討論串 (同標題文章)
文章代碼(AID): #1Fk7y_H1 (PHP)