Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Proxy problem
maxib
post 9.04.2006, 21:01:11
Post #1





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 16.12.2005

Ostrzeżenie: (0%)
-----


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
Go to the top of the page
+Quote Post
phobos
post 10.04.2006, 15:17:52
Post #2





Grupa: Zarejestrowani
Postów: 91
Pomógł: 0
Dołączył: 7.04.2006

Ostrzeżenie: (0%)
-----


moze uzyj urldecode

Ten post edytował phobos 10.04.2006, 15:18:11
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.06.2025 - 07:52