Jump to content

jbooth952

Members
  • Posts

    24
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Gilbert, AZ

jbooth952's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Disregard the last post, I got it working. It finds the file from both the prod and test area using the same path parm. Thanks for your help.
  2. Thanks. I pointed to the full path name in the script like this; simplexml_load_file('/home/userid/xmldata/sampleXML.xml'); and when I run the script from my production root, it works fine. For testing I put my scripts in a sub directory of public_html (my root) when I run the script from there, it can't find the file. Do I have to change simplexml_load_file('/home/ezsched/xmldata/assignXML.xml'); when I'm running from the test directory?
  3. Does the file have to be in the document root? If not, what is the correct syntax to point simplexml_load_file() to a directory on the server that is not the document root? ie what goes between the () this works fine if the .xml file is in my public html root - simplexml_load_file('sample.xml') but when I put the file in a different directory on the server, I can't figure out how to point to it. Help is appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.