![]() |
error
Code:
Fatal error: Call to undefined function: simplexml_load_string() in /hsphere/local/home/slamsai/cumulustidning.se/bildbank/gallery.php on line 125 |
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. |
Maybe, I don't know what version of PHP the webserver has..
Is there any way to use this for PHP 4 then? |
Not SimpleXML. To find out lots of details about your PHP installation, create a page with the following:
PHP Code:
|
Yes, I know that, but I mean, how can I get the same result, but with another method, that works with PHP 4?
|
Btw:
Code:
PHP Version 4.4.7 |
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. :) |
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