Created
January 15, 2012 22:52
-
-
Save AxlH/1617849 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Axl Hoogelander | |
* @copyright 2012 | |
*/ | |
$url = 'http://bitbucket.org/AxlH/easycms/rss'; | |
$rss = simplexml_load_file($url); | |
print_r( $rss->item->title ); | |
//$feed = new SimpleXMLElement($str,null,true); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SimpleXMLElement Object ( [@attributes] => Array ( [version] => 2.0 ) [channel] => SimpleXMLElement Object ( [title] => EasyCMS feed [link] => Array ( [0] => https://bitbucket.org/AxlH/easycms/overview [1] => SimpleXMLElement Object ( [@attributes] => Array ( [rel] => hub [href] => http://pubsubhubbub.appspot.com/ ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [rel] => self [href] => https://bitbucket.org/AxlH/easycms/rss ) ) ) [language] => en-us [generator] => Bitbucket.org DVCS Hosting [webMaster] => (Unknown Real Name) [ttl] => 5 [item] => Array ( [0] => SimpleXMLElement Object ( [title] => core folder added, for the "engine" [link] => https://bitbucket.org/AxlH/easycms/changeset/23e4f6698f0f [description] => core folder added, for the "engine" | |
core/core_database.php (10 lines added, 0 lines removed) | |
[author] => AxlH [pubDate] => Mon, 16 Jan 2012 03:51:38 +0000 [guid] => https://bitbucket.org/AxlH/easycms/changeset/23e4f6698f0f ) [1] => SimpleXMLElement Object ( [title] => index file added [link] => https://bitbucket.org/AxlH/easycms/changeset/4b41876f3a26 [description] => index file added | |
index.php (11 lines added, 0 lines removed) | |
[author] => AxlH [pubDate] => Mon, 16 Jan 2012 03:44:50 +0000 [guid] => https://bitbucket.org/AxlH/easycms/changeset/4b41876f3a26 ) [2] => SimpleXMLElement Object ( [title] => testke [link] => https://bitbucket.org/AxlH/easycms/changeset/5225b5d4a535 [description] => testke | |
README (1 lines added, 0 lines removed) | |
modules/upload.php (23 lines added, 0 lines removed) | |
modules/uploader.php (53 lines added, 0 lines removed) | |
[author] => AxlH [pubDate] => Fri, 13 Jan 2012 00:38:20 +0000 [guid] => https://bitbucket.org/AxlH/easycms/changeset/5225b5d4a535 ) ) ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object(SimpleXMLElement)[1] | |
public '@attributes' => | |
array | |
'version' => string '2.0' (length=3) | |
public 'channel' => | |
object(SimpleXMLElement)[2] | |
public 'title' => string 'EasyCMS feed' (length=12) | |
public 'link' => | |
array | |
0 => string 'https://bitbucket.org/AxlH/easycms/overview' (length=43) | |
1 => | |
object(SimpleXMLElement)[3] | |
... | |
2 => | |
object(SimpleXMLElement)[4] | |
... | |
public 'language' => string 'en-us' (length=5) | |
public 'generator' => string 'Bitbucket.org DVCS Hosting' (length=26) | |
public 'webMaster' => string ' (Unknown Real Name)' (length=20) | |
public 'ttl' => string '5' (length=1) | |
public 'item' => | |
array | |
0 => | |
object(SimpleXMLElement)[5] | |
... | |
1 => | |
object(SimpleXMLElement)[6] | |
... | |
2 => | |
object(SimpleXMLElement)[7] | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment