Before studying for my exam later today I decided to muck around with the php and give it a try. So I duplicate my adoption page and added all the php etc and uploaded everything.
When I click the egg I want to adopt it gives me this message:
- Code: Select all
Fatal error: Call to undefined function: simplexml_load_file() in [URL HERE]/adopttools.php on line 4
I didn't really edit adopttools though. Here are the first 4 lines:
- Code: Select all
<?php
//Load the adoptables XML file
$adoptxml=simplexml_load_file("adoptables.xml");
adoptables.xml exists and the syntax all looks ok in it.
What, or at least where, is my problem?
I wouldn't mind upgrading from Javascript to PHP see.
Speaking of which, someone asked me about my Javascript, so I thought I'd release the code and explain it all so people that find your wonderful PHP too complex or daunting can start off with it instead. I figure I might post it here at CS, which forum would be most suitable?
Anyway I must study now,
But ty muchly, I hope you can help me ^.^
~ Solloby