x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Reply
 
LinkBack Thread Tools Display Modes
x10Hosting Member

Join Date: Aug 2008
Posts: 5
Credits: 252
flashcreations is on a distinguished road
Quote  
09-19-2008, 07:23 PM
Question PHP Question

Hello,
I am writing a PHP script for help documentation on my website. The names of the articles and their respective category is is a XML file that is read by PHP using SimpleXML. For some reason when I upload and run the PHP file it gives me this error:
Fatal error: Call to undefined function simplexmlelement() in /home/fcchafaq/public_html/help/index.php on line 18
The line it is referring to (18) is this:
PHP Code:
$cats SimpleXMLElement('help.xml'nulltrue); 
I have the Intermediate PHP version. Does it support SimpleXML? Is there another way to do this?

Last edited by flashcreations; 09-19-2008 at 07:26 PM.
Reply With Quote
flashcreations is offlineReport Post
x10 Elder

Twinkie's Avatar

Join Date: Sep 2007
Posts: 572
Credits: 4,949
Twinkie is a glorious beacon of light
Location: Ft. Lauderdale, Florida

Send a message via MSN to Twinkie
Quote  
09-20-2008, 02:07 AM
Re: PHP Question

I am not sure, but you could try the is_function function to find out.
Reply With Quote
Twinkie is offlineReport Post
themasterrocker
Guest

Posts: n/a
Credits: 0
[Check]
Quote  
09-20-2008, 04:36 AM
Re: PHP Question

Can you show us the full PHP code?
Reply With Quote
Report Post
x10 Sophmore

Join Date: Sep 2007
Posts: 229
Credits: 33,068
scorch94 is on a distinguished road
Quote  
09-20-2008, 07:03 AM
Re: PHP Question

Shouldn't it be...
Code:
$cats = new SimpleXMLElement('help.xml', null, true);
I'm not sure either, so if you have any doubts, feel free to look at this link:
http://www.php.net/manual/en/book.simplexml.php
__________________

Reply With Quote
scorch94 is offlineReport Post
Reply

Tags
php, simplexml, xml

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Upgrade Question. otakuhot Free Hosting 3 05-03-2008 06:55 PM
[PHP] Variables in PHP Bryon Tutorials 14 03-21-2008 03:41 AM
Problem compiling PHP zip extension onto a Mac that has MAMP Pro DarkAngelBGE Free Hosting 3 03-10-2008 01:22 PM
hi, php related question lethologica Free Hosting 2 11-17-2007 03:33 PM
PHP Question Zenax Scripts & 3rd Party Apps 6 11-10-2006 10:15 PM


All times are GMT -5. The time now is 06:48 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Loans | Credit Counseling | Loans | Free Advertising | Mortgage Calculator