View Full Version : Xml Php... Please Help!
wispas
April 20th, 2008, 12:03 PM
I have followed the tutorial XML Parsing using PHP {Intermediate}: http://www.kirupa.com/web/xml_php_parse_intermediate.htm and got it to work. However, with this example I only get a heading and description. I want to add author, link and image into the xml and have it outputted as well onto the page. Anyone kind enough to help out and show me hows its done?
hl
April 20th, 2008, 01:21 PM
If you read the explanation of the given PHP, it explains what everything is for, line by line. Some replication of a few bits of the code should add more tags into the mix. :thumb:
If you're using PHP5, I'd recommend just using the SimpleXML class.
wispas
April 20th, 2008, 01:31 PM
If you read the explanation of the given PHP, it explains what everything is for, line by line. Some replication of a few bits of the code should add more tags into the mix. :thumb:
If you're using PHP5, I'd recommend just using the SimpleXML class.
I've tried the simple xml method and am getting the error - do you know what this error means Fatal error: Call to undefined function: simplexml_load_file() in /homepages/25/d220261013/htdocs/test_xml/testering.php on line 10 I followed the tutorial on this site: http://devzone.zend.com/node/view/id/688
webreforms
April 20th, 2008, 04:56 PM
You have installed simplexml right?
wispas
April 22nd, 2008, 02:52 PM
You have installed simplexml right?
no worries, i have it working now. thanks for the help.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.