Hi,
This may seem like a stupid question, but I'm quite new to php.
http://demo.gallerycms.com/index.php/view
Is it possible to import a string of xml from this url into php?
I've tried using simplexml, include, etc to import it, but with no luck
Thanks
importing xml help
Moderator: General Moderators
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: importing xml help
Depends upon what you mean by import. What do you want to do with it?
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: importing xml help
Hi AbraCadaver,
sorry, I wasnt very clear there.
At this point I just want to drop the full stream of xml into a page of html, keeping all formatting etc. I'm just not sure what to do with the way it ends in /index.php/view rather than just being a .xml file.
Thanks
sorry, I wasnt very clear there.
At this point I just want to drop the full stream of xml into a page of html, keeping all formatting etc. I'm just not sure what to do with the way it ends in /index.php/view rather than just being a .xml file.
Thanks
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: importing xml help
It doesn't matter what the path is, you can't display an XML file inside of an HTML page and have it appear as it does in the browser because you've already defined the page as HTML not XML. You can load the XML file and loop through it with PHP and display it how you want. Try http://us3.php.net/manual/en/simplexml. ... -basic.php
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Re: importing xml help
Hi Abra,
Thanks a million, I thought the problem was with the path but now I've a better understanding of what I'm doing wrong.
Thanks a million, I thought the problem was with the path but now I've a better understanding of what I'm doing wrong.