magnetica Posted September 12, 2007 Share Posted September 12, 2007 I have a problem with my RSS, i'm using PHP to write out my RSS. When I view the script locally it works fine but when I upload it to my remote server I gt an error that points to line 1; Heres the error:- Parse error: syntax error, unexpected T_STRING in D:\home\flash-online-games.co.uk\wwwroot\dailytop-feed.php on line 1 LINE 1 is: <?xml version="1.0" ?> Now i'm guessing that the version or settings of PHP that my remote server is running recognises <? as a PHP start tag as well as <?php. Or maybe this has something to do with it I tried escaping the characters but didn't work, mybe I was escaping the wrong characters?! Is there any way to overcome this? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/69012-rss-feed-with-php/ Share on other sites More sharing options...
xyn Posted September 12, 2007 Share Posted September 12, 2007 show the coding? Quote Link to comment https://forums.phpfreaks.com/topic/69012-rss-feed-with-php/#findComment-346918 Share on other sites More sharing options...
ToonMariner Posted September 12, 2007 Share Posted September 12, 2007 you have short tags enabled in the php.ini file you need to turn that off! Quote Link to comment https://forums.phpfreaks.com/topic/69012-rss-feed-with-php/#findComment-346923 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.