Why it doesn't display simple php?
Posted: Sun Dec 14, 2008 9:05 am
Hello. Every time I'm placing some php function in either template or in content, cms always displays errors on the page instead of running that script.
Like for example here is a small php for RSS feed:
items, 0, 5);
// Cycle through each item and echo
foreach ($items as $item )
{
echo ''.$item['title'].'';
}}else { echo 'Error:'.magpie_error().'';}// Restore original error reporting value@ini_restore('error_reporting');
?>
It works totally fine if I just place it in *.php document and upload on the server. What am I doing wrong?
Thank you
Like for example here is a small php for RSS feed:
items, 0, 5);
// Cycle through each item and echo
foreach ($items as $item )
{
echo ''.$item['title'].'';
}}else { echo 'Error:'.magpie_error().'';}// Restore original error reporting value@ini_restore('error_reporting');
?>
It works totally fine if I just place it in *.php document and upload on the server. What am I doing wrong?
Thank you