Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做一个博客,但我想开始给评论加上时间戳,但我想开始在日期里面写一个
这是我的代码:
<div id="midMain"> 'Zup? <?php date_default_timezone_set('UTC'); echo date('l jS \of F Y h:i:s A'); ?> </div>
它只显示“'Zup?” 部分,怎么办?
我测试了你的代码,它显示:
'Zup? Monday 16th of April 2012 11:18:02 AM
问题不在于该代码。
在我的邮件客户端或 gmail 中,发件人始终是 apache@hosting12
有什么办法可以解决这个问题?我试过设置这样的标题但没有成功。有人可以帮帮我吗?
$headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;chars