PHP Question

flashcreations

New Member
Messages
5
Reaction score
0
Points
0
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:
$cats = SimpleXMLElement('help.xml', null, true);
I have the Intermediate PHP version. Does it support SimpleXML? Is there another way to do this?
 
Last edited:

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
I am not sure, but you could try the is_function function to find out.
 
Top