Re: simplexml_load_string();
| From: | Larry Garfield | Date: | Wed, 18 Jul 2007 23:51:19 +0000 |
| Subject: | Re: simplexml_load_string(); | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259153@lists.php.net to get a copy of this message | ||
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 SimpleXML. SimpleXML uses language
features that don't exist in PHP 4. The best answer is to use PHP 5 and let
PHP 4 die a respectable death, as most of the world seems to have decided to
do[1].
[1] http://gophp5.org/
--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson