1
即時通訊使用PyroCMS和我試圖上傳一些靜態網頁,我不想CMS瞭解。Facebook的channelURL文件與PyroCMS
在我的服務器我有一個文件夾命名爲「靜態」
mydomain.com/static
當我瀏覽到它PyroDisplays 404頁。到目前爲止確定,因爲我沒有在頁面模塊中命名爲靜態的頁面。
在我的Facebook的腳本,我需要的channelURL指向一個PHP文件mydomain.com/static/channel.php channel.php
<?php
$cache_expire = 60*60*24*365;
header("Pragma: public");
header("Cache-Control: max-age=".$cache_expire);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');
?>
<script src="//connect.facebook.net/en_US/all.js"></script>
輸出
Warning: Cannot modify header information - headers already sent by (output started at /home2/inspire1/public_html/static/channel.php:1) in /home2/inspire1/public_html/static/channel.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /home2/inspire1/public_html/static/channel.php:1) in /home2/inspire1/public_html/static/channel.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /home2/inspire1/public_html/static/channel.php:1) in /home2/inspire1/public_html/static/channel.php on line 5
所以我的問題是如何與PyroCMS一起實現channel.php
文件。
感謝菲爾,我再次看看這個。 – IEnumerable