Strona 1 z 1

[PHP][Problem] Proxy error

: ndz kwie 09, 2006 9:05 pm
autor: maksib
Witam mam problem z pewnym skryptem czy ktoś wie o co chodzi?

Wyskakuje mi taki błąd:

Kod: Zaznacz cały

Fatal error: Non-static method PHProxy::decode_url() cannot be called statically in D:\Program Files\WebServ\httpd\proxy\PHProxy.class.php on line 276

a tutaj fragment kodu:

Kod: Zaznacz cały

270        $this->basic_auth_header = base64_encode(sprintf('%s:%s', $username,                 $password));
271       setcookie(urlencode("AUTH;{$this->url_segments['host']}"), $this->basic_auth_header, 0, '', $this->http_host);
272   }
273
274    function set_url($url)
275    {
276         $this->url = decode_url($url);
277
278         if (strpos($this->url, '://') === false)
279         {
280             $this->url = 'http://' . $this->url;
czy ktoś wie w czym jest tutaj problem bo ja juz nie daje rady .

Re: [PHP][Problem] Proxy error

: ndz kwie 09, 2006 10:19 pm
autor: Cotter
Musisz stworzyć odpowiedni obiekt, a następnie odwołać się do tej funkcji poprzez ten obiekt. Pokaż kod z pliku PHProxy.class.php to powiem ci dokładniej.

Re: [PHP][Problem] Proxy error

: ndz kwie 09, 2006 10:24 pm
autor: maksib
tutaj znajduje się ten skrypt:

Kod: Zaznacz cały

http://xoomer.virgilio.it/maksib/PHProxy.class.php