经过研究,我发现很多人都面临同样的问题.但到目前为止,我没有解决方案,这发生在我将服务器切换到linode.com之后
让我们举一个例子.www.acemark2u.com是linode服务器下托管的网站之一,当我尝试在https://developers.facebook.com/tools/debug/og/object/中调试时,它无法获取scrape信息正确的,如果我尝试使用其中一个页面www.acemark2u.com/about-us,它只会显示错误"解析输入URL时出错,没有缓存数据,或者没有数据被删除".
奇怪的事情发生了.当我尝试使用ip地址106.187.35.114/~acemark2进行调试时,一切顺利.很好地获取,页面没有错误404.
我怀疑它可能是由"gethostbyaddr"功能引起的(参考:http://www.gearhack.com/Forums/DisplayComments.php? file = Computer/Network/Internet/Preventing_Your_Web_Server_From_Blocking_Facebook_Share )但到目前为止我还没有解决方案.
我希望使用gmail smtp将用户信息发送到已注册的电子邮件.
我正在使用的代码在我的localhost中工作正常,但是当我改为共享主机时,它出现了以下错误.
A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.googlemail.com:465 (Connection timed out)
Filename: libraries/Email.php
Line Number: 1652
A PHP Error was encountered
Severity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1795
.... (more error msg here)
An Error Was Encountered
The following SMTP error was encountered: 110 Connection timed out
Unable to send data: AUTH LOGIN
Failed to send AUTH LOGIN command. Error: …Run Code Online (Sandbox Code Playgroud) 例如:
text text text text text text text text text text text text
text text text text text text text text text text text text
text text text text ------------------- text text text text
text text text text |this is the image| text text text text
text text text text ------------------- text text text text
text text text text text text text text text text text text
text text text text text text text text text text text text
Run Code Online (Sandbox Code Playgroud)
这可能吗?