Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Problem znakow po raz n-ty.
Frostbourn
post
Post #1





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 25.10.2008

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


Witam. Dopier stawiam pierwsze kroki w bawieniu sie php i nie moge sie do konca polapac o co chodzi. Przeszukalem forum, probowalem roznych sposobow i nie moge sobie z tym poradzic...


  1. <?
  2. $adres=base64_decode($_GET['link']);
  3. $url    = $adres;
  4. $head    = get_headers($url, 1);
  5. $url = parse_url($head['Location']);
  6. header ('HTTP/1.1 301 Moved Permanently');
  7. header ('Location: http://' . $url['host'] . $url['path'] . (strpos($url['path'], '.mp3') !== false ? '' : '.mp3') . '?' . $url['query']);
  8.  
  9. ?>


Chcialbym tutaj jakos podłaczyc obsluge polskich znakow, bo gdy chce sciagnac piosenke ktora ma w tylule polski znak wyskakuje mi cos takiego:





Kod
Warning: get_headers(http://googaa.wrzuta.pl/aud/file/x4hvqIxhpl/pectus_-_to_co_chcialbym_ci_dac.mp3) [function.get-headers]: failed to open stream: Invalid redirect URL! http://va.wrzuta.pl/wa2040/b58ef9b80002e50e48983932/733a44160a86f12196319a818db1e2954901fe80/pectus%20-%20to%2C%20co%20chcia%C5%82bym%20ci%20da%C4%87?type=a&key=x4hvqIxhpl&ft=f in /home/pob.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /home/pob.php:4) in /home/pob.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at /home/pob.php:4) in /home/zamieszkaj/pob.php on line 7



Bede wdzieczny za pomoc.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Lejto
post
Post #2





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 48
Dołączył: 23.05.2007

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


a spróbuj zmienić kodowanie na iso-8859-2
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.12.2025 - 00:22