Hallo zusammen,
um die Ergebnissdaten auch hinter einem Proxy herunterladen zu können, habe ich folgenden Zusatzcode in die inc.functions.php hinterlegt:
Code
- // Edit the four values below
- $PROXY_HOST = "x.x.x.x"; // Proxy server address
- $PROXY_PORT = "80"; // Proxy server port
- $PROXY_USER = ""; // Username
- $PROXY_PASS = ""; // Password
- // Username and Password are required only if your proxy server needs basic authentication
- $auth = base64_encode("$PROXY_USER:$PROXY_PASS");
- stream_context_set_default(
- array(
- 'http' => array(
- 'proxy' => "tcp://$PROXY_HOST:$PROXY_PORT",
- 'request_fulluri' => true,
- // 'header' => "Proxy-Authorization: Basic $auth"
- // Remove the 'header' option if proxy authentication is not required
- )
- )
- );
Das funktioniert prima.
Was jetzt noch fehlt ist die Möglichkeit den Liveticker und die Fußball News hinter einem Proxy zu realisieren. Dann wären alle Funktionen auch mit Proxy möglich.
Kann mir vielleicht jemand helfen?
Danke sehr.