Re: [PHP] simplexml_load_string();

2007-07-20 Thread Richard Lynch
On Wed, July 18, 2007 8:41 am, Ross wrote: > $data = simplexml_load_string(file_get_contents($url)); > > Is there a php4 version of this or does this only work in 5? How can I > get > around it? If you absolutely have to support PHP 4, be prepared for a rather long and tedious testing period wher

Re: [PHP] simplexml_load_string();

2007-07-18 Thread Larry Garfield
On Wednesday 18 July 2007, Ross wrote: > $data = simplexml_load_string(file_get_contents($url)); > > Is there a php4 version of this or does this only work in 5? How can I get > around it? There might be a user-space generic XML parser available somewhere, but nothing that will map directly to S

RE: [PHP] simplexml_load_string();

2007-07-18 Thread Vo, Lance
Try to do a search in PEAR.PHP.NET I remember I've seen something like this for php4, but not sure where. Lance -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 8:41 AM To: php-general@lists.php.net Subject: [PHP] simplexml_load_string();

[PHP] simplexml_load_string();

2007-07-18 Thread Ross
$data = simplexml_load_string(file_get_contents($url)); Is there a php4 version of this or does this only work in 5? How can I get around it? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simplexml_load_string always FALSE

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 12:26 pm, Scott Klarenbach wrote: > I have a call > $oXML = simplexml_load_string($xmlString); > > I then check it, with > > if(!$oXML) throw new XMLException(); > > For some reason, it's always evaluating to FALSE. Even though there > are no errors and the rest of the xm

[PHP] simplexml_load_string always FALSE

2005-11-10 Thread Scott Klarenbach
I have a call $oXML = simplexml_load_string($xmlString); I then check it, with if(!$oXML) throw new XMLException(); For some reason, it's always evaluating to FALSE. Even though there are no errors and the rest of the xml parsing works fine. If I change it to if($oXML === FALSE) throw new XML