<?php $ch = curl_init("http://rss.news.yahoo.com/rss/oddlyenough"); $fp = fopen("example_homepage.html", "w"); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); fclose($fp); $xml = simplexml_load_file('example_homepage.html'); print "<ul>\n"; foreach ($xml->channel->item as $item){ print "<li>$item->title</li>\n"; } print "</ul>"; ?>
Application development and sharing our knowledge to developer to developer for helping knowledge to build a effective solution for web architect.
Tuesday, September 18, 2012
curl service example in php
Monday, September 17, 2012
function split() is deprecated php and codeingiter , joomla , worpress , magento, php, smarty, cakephp
replace $base_struc = split('[/.-]', 'd/m/Y'); to $base_struc = explode('/', 'd/m/Y');
function split() is deprecated php and codeingiter , joomla , worpress , magento, php, smarty, cakephp
function split() is deprecated php and codeingiter , joomla , worpress , magento, php, smarty, cakephp
Subscribe to:
Posts (Atom)