Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If, like you say, you are behind a proxy, your <a href="http://php.net/simplexml_load_file" rel="nofollow noreferrer"><code>simplexml_load_file</code></a> will probably fail : PHP will not be able to connect directly to the remote server, and won't be able to download the XML file.</p> <p>Two possible solutions :</p> <ul> <li>first, fetch the data, with something else <em>(like curl, configureg to use the proxy ; see the options you can use with <a href="http://www.php.net/curl_setopt" rel="nofollow noreferrer"><code>curl_setopt</code></a>)</em> ; and only then, use <a href="http://www.php.net/simplexml_load_string" rel="nofollow noreferrer"><code>simplexml_load_string</code></a>.</li> <li>Or, use <a href="http://php.net/stream_context_create" rel="nofollow noreferrer"><code>stream_context_create</code></a> to configure a stream that uses the proxy. <ul> <li>About that, you can see <a href="https://stackoverflow.com/questions/1336262/filegetcontents-getaddrinfo-more-specifically-behind-a-proxy/1336419#1336419">my answer there</a> : it was the same problem you are experiencing</li> <li>Though, you'll probably have to fetch the XML data first, with <code>file_get_contents</code>, and, only then, use <code>simplexml_load_string</code> to load it, as <code>simplexml_load_file</code> doesn't seem to accept a stream context as parameter :-(</li> </ul></li> </ul> <p>The second solution should work quite nice, I suppose ; and shouldn't require too much work : just a stream context to configure when you are on localhost. <br>Which means less work than having to deal with curl, I suppose ;-)</p> <p>Have fun !</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload