dongrenzheng1619 2013-04-24 09:30
浏览 24

PHP Fsockopen检查端口25

I have written a code to check port 25 of one of my local server . The smtp server is running on the server, but when i check with fsockopen, returns a connection refused error . So how i check whether SMTP is down or up using a simple php code .

  • 写回答

2条回答 默认 最新

  • 普通网友 2013-04-24 09:41
    关注

    Are the php script and the smpt on the same machine? Have you checked the connection with telnet?

    telnet your.local.server 25
    

    Generally "Connection refused" means, what it says ;)

    • smtp server is not running, or
    • your server is not reachable (firewall?)
    评论

报告相同问题?