phpでrssの情報を抜き出したい場合は、titleやlinkの要素は以下の通りで抜き出せます。
<?php // Load and parse the XML document
$rss = simplexml_load_file('http://partners.userland.com/nytRss/nytHomepage.xml');
$title = $rss->channel->title;
?>
…
php.iniの short_open_tag = On にすることで <?php の省略形が使えるようになる。
<?php
echo “test”;
?>
↓↓↓↓↓↓↓↓
<?
echo “test”;
?>
graffiti on the web
この投稿へのコメント
コメントはまだありません。