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
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Display Modes
Old 10-18-2007, 04:36 PM   #1 (permalink)
The Gregarious
Upcoming Programmer Inquisitive 
 
Join Date: Sep 2007
Posts: 651
Thanks: 82
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, 05:46 PM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 700
Thanks: 2
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, 06:51 PM   #3 (permalink)
The Gregarious
Upcoming Programmer Inquisitive 
 
Join Date: Sep 2007
Posts: 651
Thanks: 82
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, 07:48 PM   #4 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 700
Thanks: 2
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, 08:00 PM   #5 (permalink)
The Gregarious
Upcoming Programmer Inquisitive 
 
Join Date: Sep 2007
Posts: 651
Thanks: 82
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, 08:08 PM   #6 (permalink)
The Gregarious
Upcoming Programmer Inquisitive 
 
Join Date: Sep 2007
Posts: 651
Thanks: 82
Tanax is on a distinguished road
Default

Btw:

Code:
PHP Version 4.4.7
Tanax is offline  
Reply With Quote
Old 10-19-2007, 12:57 PM   #7 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 700
Thanks: 2
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, 08: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
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 12:22 PM.

 
     

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