Why does this not parse xml?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HaLo2FrEeEk
    Contributor
    • Feb 2007
    • 404

    #16
    Try creating a new variable:

    $entries = $menu->query("//menu/entry");

    Now do print_r($entrie s). Does it print anything? If so, keep the new variable and replace $menu->query("//menu/entry") in your foreach with $entries.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #17
      HaLo, I think we might be forgiven for this, considering PHP4 is almost a million years old. ;)

      npm, is there any particular reason you're still using PHP4?

      Comment

      • npm
        New Member
        • Apr 2007
        • 57

        #18
        The server is from an outside company. I've contacted them about the possibility of an upgrade. Thank you all for your time, however in vain in turned out to be. :)

        Comment

        • HaLo2FrEeEk
          Contributor
          • Feb 2007
          • 404

          #19
          Ask them if there's any way you can install your own custom PHP. I'm on Dreamhost and they let users install their own version of PHP, it's not difficult, just a few files to copy and some changes to the .htaccess file. Ok, it's a little more complicated than that, but not much.

          Comment

          Working...