TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   error (http://www.talkphp.com/absolute-beginners/1316-error.html)

Tanax 10-18-2007 03:36 PM

error
 
Code:

Fatal error: Call to undefined function: simplexml_load_string() in /hsphere/local/home/slamsai/cumulustidning.se/bildbank/gallery.php on line 125
What does that mean??

Salathe 10-18-2007 04:46 PM

It means that the function simplexml_load_string has not been defined -- it is not available to be used. Are you running PHP4 on the server by any chance? The SimpleXML extension is only available (and enabled by default) in PHP5.

Tanax 10-18-2007 05:51 PM

Maybe, I don't know what version of PHP the webserver has..

Is there any way to use this for PHP 4 then?

Salathe 10-18-2007 06:48 PM

Not SimpleXML. To find out lots of details about your PHP installation, create a page with the following:

PHP Code:

<?php

phpinfo
();

?>


Tanax 10-18-2007 07:00 PM

Yes, I know that, but I mean, how can I get the same result, but with another method, that works with PHP 4?

Tanax 10-18-2007 07:08 PM

Btw:

Code:

PHP Version 4.4.7

Salathe 10-19-2007 11:57 AM

You'll have to find an alternative to SimpleXML. There are far too many variations to list here comprehensively, and nothing ever seems as good as "the PHP5 way" looking back.

Possible solutions
All said and done, it would probably be better and easier just to ask your host to upgrade the server. :)

Andrew 10-19-2007 07:21 PM

Besides your host completely upgrading the server, some hosts (including mine, ASmallOrange), allow you to put a line of code inside your .htaccess that will parse all your .php files as PHP5. Look through your hosts FAQ file or do a quick search on their forums (if they have some) to see if they allow you to do that.


All times are GMT. The time now is 08:10 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0