I need some help on checking if data is loading from an XML file in this script. I don't need to check if it's well-formatted XML, I just need to know there is something there. I've been using a really simple podcast XML for the test:
Code: Select all
$xml = simplexml_load_file('http://grandriversvariety.com/podcast.xml');
if ($xml) { echo 'XML loaded successfully'; }
else { echo 'Unable to load XML'; }I'm running PHP 5.2.0 on my mac under MAMP.
-PM