Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [php] Proxy problem
Forum PHP.pl > Forum > PHP
maxib
Witam mam problem z pewnym skryptem czy ktoś wie o co chodzi?

Wyskakuje mi taki błąd:

Kod
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:

  1. <?php
  2.  
  3. 270 $this->basic_auth_header = base64_encode(sprintf('%s:%s', $username,  $password));
  4. 271  setcookie(urlencode("AUTH;{$this->url_segments['host']}"), $this->basic_auth_header, 0, '', $this->http_host);
  5. 272  }
  6. 273
  7. 274 function set_url($url)
  8. 275 {
  9. 276  $this->url = decode_url($url);
  10. 277
  11. 278  if (strpos($this->url, '://') === false)
  12. 279  {
  13. 280  $this->url = 'http://' . $this->url;
  14.  
  15. ?>


czy ktoś wie w czym jest tutaj problem bo ja juz nie daje rady sadsmiley02.gif
phobos
moze uzyj urldecode
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.