TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-18-2007, 03:36 PM   #1 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default 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??
Tanax is offline  
Reply With Quote
Old 10-18-2007, 04:46 PM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

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.
Salathe is offline  
Reply With Quote
Old 10-18-2007, 05:51 PM   #3 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

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

Is there any way to use this for PHP 4 then?
Tanax is offline  
Reply With Quote
Old 10-18-2007, 06:48 PM   #4 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

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

PHP Code:
<?php

phpinfo
();

?>
Salathe is offline  
Reply With Quote
Old 10-18-2007, 07:00 PM   #5 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Yes, I know that, but I mean, how can I get the same result, but with another method, that works with PHP 4?
Tanax is offline  
Reply With Quote
Old 10-18-2007, 07:08 PM   #6 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Btw:

Code:
PHP Version 4.4.7
Tanax is offline  
Reply With Quote
Old 10-19-2007, 11:57 AM   #7 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

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. :)
Salathe is offline  
Reply With Quote
Old 10-19-2007, 07:21 PM   #8 (permalink)
The Acquainted
 
Join Date: Sep 2007
Location: Arizona
Posts: 114
Thanks: 10
Andrew is on a distinguished road
Default

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.
Send a message via AIM to Andrew Send a message via MSN to Andrew
Andrew is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:24 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design