RSS на сайте
Posted: Tue Mar 19, 2013 4:06 pm
В /scj/rss.php и wiki есть небольшое различие
http://smartcj.com/wiki/doku.php?id=ru: ... rss_export
/scj/rss.php:
Этой строки в /scj/rss.php хватает, чтоб RSS у меня никогда не отображался в FF, а в хроме выдавал ошибку.
http://www.grannyhd.com/rss.php - из вики
http://www.grannyhd.com/scj/rss.php - "родной"
Почему так?
Я понимаю, что в десках галер может попадаться какой-то символ, который всю эту хрень ламает в случае с xml хедером..
http://smartcj.com/wiki/doku.php?id=ru: ... rss_export
Code: Select all
<?php
define('CACHE_TIME', 86400);
$_GET['force_template'] = 'rss';
$_GET['skip_cell_settings'] = true; // skips cell K calculation - saves a bit of processor time
// $_GET['custom_galleries'] = true; // uncomment this line if you need only custom galleries in site map
include('./scj/tube/index.php');Code: Select all
<?php
define('CACHE_TIME', 86400);
$_GET['force_template'] = 'rss';
$_GET['skip_cell_settings'] = true; // skips cell K calculation - saves a bit of processor time
// $_GET['custom_galleries'] = true; // uncomment this line if you need only custom galleries in site map
header('Content-Type: application/xml');
include('./tube/index.php');
http://www.grannyhd.com/rss.php - из вики
http://www.grannyhd.com/scj/rss.php - "родной"
Почему так?
Я понимаю, что в десках галер может попадаться какой-то символ, который всю эту хрень ламает в случае с xml хедером..