PHP tag inside a PHP tag? -


so follow guide:

http://www.bitrepository.com/php-how-to-add-multi-language-support-to-a-website.html

and working got in problem:

everywhere want text place: <?php echo $lang['footer_currency']; ?>

but have php code rss feed: (right inside php file)

<?php     // show number of items       $items = 6;        // load rss simplexml rss pctuts http://www.pctuts.be/external.php?do=rss&type=newcontent&sectionid=1&days=120&count=10 replace link voor right 1     $rss        = simplexml_load_file('http://test.blogspot.com/feeds/posts/default?alt=rss');       // show last items       for($i=0;$i<$items;$i+=1)          {          echo "<div class=\"channel\"><a href=\"{$rss->channel->item[$i]->link}\" target=\"_blank\">{$rss->channel->item[$i]->title}</a></div>\n";        }        ?> 

now wan't replace rss feed link every language. replaced usualy do:

this:

$rss        = simplexml_load_file('http://cupandsaucersweden.blogspot.nl/feeds/posts/default?alt=rss'); 

to:

$rss        = simplexml_load_file('<?php echo $lang['footer_rssfeed']; ?>'); 

well ofcourse php tag inside php tag won't work did this:

$rss        = simplexml_load_file('echo $lang['footer_rssfeed']; '); 

doesn't work either, tried many other things won't work. can me this?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -