Here is the error I am receiving when I load the page calling that script:
Fatal error: Call to a member function on a non-object in /export/home1/http/.users/a0/00/10/43/bradleya.ca/www/txtfolder/counter.php on line 83
The PHP version my webspace provider is using is 4.4. All the xml related libraries have been built in and the php.ini file is loading the module for domxml (php_domxml.dll). I haven't made any changes to my xml file, and here is a snipit of the code from it:
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Fatal error: Cannot instantiate non-existent class: domxml_open_file in /export/home1/http/.users/a0/00/10/43/bradleya.ca/www/txtfolder/counter.php on line 82
Based on the sample on this page, how about trying this to replace lines 82-83?
PHP Code:
if (!$DomDocument = domxml_open_file($dom)) {
echo "Error while parsing the document\n";
exit;
}
$tags = $DomDocument->get_elements_by_tagname('visitors');
I'm sort of stumbling in new territory for me here, just hoping maybe I can throw a dart that happens to find a solution (and maybe learn a little something while I'm doing it).
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
NogDog you're a genius LOL it was "realpath" I was missing, I KNEW it wasn't those lines, I read everything I could on domxml and I was so lost
Thanks again!
Not so sure it's genius as much as it's stubbornness.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks