Escaping <? on php shorthand enabled server when using require

STARTLiL

New Member
I'm trying to \[code\]require()\[/code\] my template for rss feed in php. Unfortunately I need to have shorthand tags enabled on server I'm working with.I have to start my rss with \[code\]<?xml version="1.0" encoding="UTF-8" ?>\[/code\] and \[code\]<? ... ?>\[/code\] confuses php into thinking he has to parse that line of code.Is there a way to "escape" that?here's just the full code of my rss template that I'm trying to include into main php file:\[code\]<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0"> <channel> <title>Kokodakalo!</title> <link>http://127.0.0.1/koko/</link> <description>Usluga sli?na twitteru</description> <?php $data = http://stackoverflow.com/questions/10457409/$controller->getData(); foreach($data as $post):?> <?php require('views/Rss/item.part.v.htm');?> <?php endforeach;?> </channel> </rss></xml>\[/code\]
 
Back
Top