dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Problems using PHP to create XML

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    16
    I'm using a PHP script that returns data in an XML structure. So rather than calling myXML.load() on an XML file, I'm calling it on a PHP script. For example:

    myXML.load("http://www.somewhere.com/myFile.php");

    This works fine when I'm running it locally, but when I publish the .swf file to the web, all of a sudden it doesn't work. I tried debugging, and I think it's never getting to my myXML.onload call.

    Any ideas as to why this is the case would be MAJORLY helpful!

  2. #2
    Off the top of my head, I seem to remember something about the script/swf file needing to be in the same directory on the server....??

    Not sure, but it's easy enough to give it a shot -

    jonny
    hollow planet

  3. #3
    Junior Member
    Join Date
    Feb 2001
    Posts
    16

    oh yeah!

    HollowPlanet, you da man!

    My script and swf file WERE in the same directory, but apparently giving the absolute path to the script isn't the same as giving it a relative path.

    XML.load("file.php") ---------------------- works
    XML.load("http://www.bla.com/file.php")---- doesn't even if the script and swf are both at http://www.bla.com

    Thanks man.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center