Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    64
    Thanks
    0
    Thanked 1 Time in 1 Post

    reading an xml file from another domain and wrappers

    can anyone help with this php error.

    "[Tue Jan 02 08:46:16 2007] [error] [client 195.137.117.123] PHP Warning: file(http://www.domain.com/stats/stats-daily.xml): failed to open stream: no suitable wrapper could be found in /var/www/html/statstest.php on line 3"

    the code used to work no problem and my ISP claims they have done nothing but that can't be the case. Anyhow, I tried using php_stream_open_wrapper but got function not defined so that php extension doesn't exist on my ISP.

    any clues on how to read an XML file from another domain avaoiding the wrapper error?

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,045
    Thanks
    10
    Thanked 93 Times in 91 Posts
    check the output of phpinfo() and see if allow_url_fopen is on or off
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New Coder
    Join Date
    Aug 2006
    Posts
    64
    Thanks
    0
    Thanked 1 Time in 1 Post
    its off and I have been trying to set it on. My ISP is denying they've done anything but I used to be able to read files from other severs and now I can't.

  • #4
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,045
    Thanks
    10
    Thanked 93 Times in 91 Posts
    And thats the reason why
    That setting stops you from using file, fopen, fsockopen etc with url's

    All you can do is shout at your host.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #5
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    I know that the hosts want those things (and globals) turned off
    for security reasons. You may have another way (worth at try).

    Adding this: php_flag allow_url_fopen on

    to your .htaccess file, may turn it back on.

  • #6
    New Coder
    Join Date
    Aug 2006
    Posts
    64
    Thanks
    0
    Thanked 1 Time in 1 Post
    they have now turned it on. register globals is supposed to be off but its on.
    I dont know what they've been doing. I think its got a lot to do with updates to ensim which sets everything nack to its defaults.

    Anyhow, its fixed for now thanks.


  •  

    Posting Permissions

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