Здравейте,мъча се вече няколко дни но така и не ми се получава да извлека инфото от някой XML фийдове
пример;
http://grabo.bg/rss/exportxml
http://www.grupo.bg/offers/xml
http://www.lapni.bg/outer/affiliate_feed/2766
ето и еррор лога
[sql][21-Jul-2013 13:43:19 UTC] PHP Warning: PHP Startup: eAccelerator: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
[21-Jul-2013 13:43:19 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/name/public_html/ogral.com/cron/cron.php on line 4
[/sql]
Примерен код:
пример;
http://grabo.bg/rss/exportxml
http://www.grupo.bg/offers/xml
http://www.lapni.bg/outer/affiliate_feed/2766
ето и еррор лога
[sql][21-Jul-2013 13:43:19 UTC] PHP Warning: PHP Startup: eAccelerator: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
[21-Jul-2013 13:43:19 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/name/public_html/ogral.com/cron/cron.php on line 4
[/sql]
Примерен код:
PHP:
$rss_url = 'http://www.lapni.bg/outer/affiliate_feed/2766';
$xml = simplexml_load_file($rss_url);
foreach($xml->channel->item as $item){
$title = $item->title;
}