Jump to content

[SOLVED] simple XML what am i doing wrong??


laPistola

Recommended Posts

<?php
    $xml = simplexml_load_file('http://www.inveroak.com/readerimages/livepanel/91130.xml');
?>
<html>
<head>
<title>Untitled Document</title>
</head>

<body>
<?php foreach($xml->reader as $reader): ?>     
    <div> 
        <h2><?php echo($reader->name) ?></h2> 
        <p>pin: <?php echo($reader->pin) ?></p> 
        <p>status: <?php echo($reader->status) ?></p> 
    </div> 
    <?php endforeach; ?> 

</body>
</html>

 

im just getting Fatal error: Call to undefined function: simplexml_load_file()

 

the PHP server is 4.4.8 i take it simpleXML isn't on this server version so what can i do instead?

Link to comment
https://forums.phpfreaks.com/topic/134200-solved-simple-xml-what-am-i-doing-wrong/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.