用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2654|回复: 1
收起左侧

本机调试可以网上的不行

[复制链接]
发表于 2009-7-11 00:31:52 | 显示全部楼层 |阅读模式
A PHP Error was encounteredSeverity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to smtp.tom.com:25 (Connection refused)
Filename: libraries/Email.php
Line Number: 1342

A PHP Error was encounteredSeverity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1481

A PHP Error was encounteredSeverity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1502

A PHP Error was encounteredSeverity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1481

A PHP Error was encounteredSeverity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1502

A PHP Error was encounteredSeverity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1481

A PHP Error was encounteredSeverity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1502
发表于 2009-7-11 00:42:08 | 显示全部楼层
错误消息很明显,对方阻止你链接他的 SMTP 服务器,这个就没办法了,任命吧,要不就换其他 SMTP 服务器。

还一种可能,服务器不允许 PHP 连接其他服务器,总之是服务器环境问题,呵呵。

本版积分规则