Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    Jun 2004
    Posts
    10

    http.submit and phpnuke

    I'm trying to get an xml document from a site that uses phpnuke. Specifically, I am trying to use the xml doc which is used for the site RSS feed. I tried http.download but the file returned merely contained the text "Leave this site now!". I can download the file using a link from another webpage and using rightclick>save as. So, apparently this is a matter of formatting the request properly. I then tried http.submit to get the file, but to no avail. Perhaps, it's the values argument that must be right. I'm really not sure.

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    This sounds like a good job for the official XML plugin:

    http://www.autoplay.org/plugin/xml.php
    Intrigued

  3. #3
    Join Date
    Jun 2004
    Posts
    10
    Yes it does. However, From what I understand the plugin is useful for manipulating and using xml documents, but they must first be loaded. That's where I seem to be running into a problem. Actually obtaining the xml document.

  4. #4
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Ah.. I see.
    Intrigued

  5. #5
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    brdga,

    Post the code and link that you're trying to download and let's take a look at it. Is this a plain old xml file? Or is it an xml file that's parsed by php. Either way, provide the link and I'm sure we can resolve this.

  6. #6
    Join Date
    Jun 2004
    Posts
    10
    I appears to be an xml file that is parsed by php. the address is http://2e1x1.net/phpnuke/html/rdf-nuke.php

    As far as relevant code, I'm at a complete loss as to how to do this now.

  7. #7
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    It appears that site's webhost prefer one not do what you are trying to do (Screen Scrap).

    If I understood your originial request (and upon rereading such).

    I have not personally gotten into parsing, XML, and PHP arrangements just yet.

    But, this did not work from PHP (same message you got, I received):

    Code:
    <?php
    	$page = file_get_contents('http://2e1x1.net/phpnuke/html/backend.php');
    	print $page;
    ?>
    Note: I also tried the link you posted as the URL in the PHP script.

    Sincerely,

    But then... I sured don't want the rath of the Computer Operators on my backside and I suspect you would not either!
    Intrigued

  8. #8
    Join Date
    Jun 2004
    Posts
    10
    Well the site owner is a veryclose friend who has asked me to build this little app. So, I have no wrath to fear However, he's understandably not willing to loosen the security restrictions.

    The fact that I can get it with IE/Mozilla and RSS news readers get it ok tells me that I still just need to find the right way of formatting the request. I'll get it eventually.

  9. #9
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by brdga
    Well the site owner is a veryclose friend who has asked me to build this little app. So, I have no wrath to fear However, he's understandably not willing to loosen the security restrictions.

    The fact that I can get it with IE/Mozilla and RSS news readers get it ok tells me that I still just need to find the right way of formatting the request. I'll get it eventually.
    Have you asked the site operator on how to accomplish this? Or, is this to show I can do it and thus I can't ask him/her sort of arrangement?

    Just a thought... wish I could be of more help. Hopefully the PHP guru's will arrive shortly to help you out.

    Sincerely,
    Intrigued

  10. #10
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Try this
    Attached Files

  11. #11
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    This might do it for you too:
    Attached Files
    Last edited by Worm; 10-12-2004 at 11:02 AM.

  12. #12
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    BTW, the above can be used to get the source of almost any text file from a web server.

  13. #13
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Quote Originally Posted by Worm
    BTW, the above can be used to get the source of almost any text file from a web server.
    Well, that probably eliminates brdga's next question

  14. #14
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    *Saved those two gems myself! Nice.
    Intrigued

  15. #15
    Join Date
    May 2003
    Location
    Pendleton, Oregon
    Posts
    1,038
    Thanks for the DLL Worm. This will come in handy. I’ve had a similar problem before of needing what the script returned, this answers that nicely. I wonder how hard it would be for I. R. to add a ‘save as’ function for the Web Object. I’m happy to have your DLL, but if it was easy enough to include, this might make a useful addition to the core of AMS.

    I don’t mean to give you the cold shoulder Ron, I just haven’t downloaded and tried your version yet. I’m sure that like your other posts, it’s a winner too.

    Glad I downloaded that Media Player example you posted before you pulled it. I plan on checking it out soon, thanks. So much to do, so little time.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Phpnuke verify user name to get file
    By BigBoss in forum Setup Factory 6.0
    Replies: 19
    Last Post: 08-13-2003, 04:08 AM

Posting Permissions

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