Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]file_get_contents problem z &
wnovak
post
Post #1





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 24.04.2005

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


  1. file_get_contents("http://www.allegro.pl/search.php?us_id=1111111&string=xxxxx");

Mam problem, jak dam w adresie & to mi zwraca:
  1. Warning: file_get_contents() [function.file-get-contents]: Circular redirect, aborting.
  2. Warning: file_get_contents(http://www.allegro.pl/search.php?us_id=11111&string=xxxxx) [function.file-get-contents]: failed to open stream: Success in


a jak użyje & to wtedy pobiera stronę z uwzględnieniem tylko pierwszej zmiennej.

Nie mogę znaleźć rozwiązania, próbowałem między innymi urlencode()
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
pedro84
post
Post #2





Grupa: Nieautoryzowani
Postów: 2 249
Pomógł: 305
Dołączył: 2.10.2006

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


Spróbuj zamienić ampersand na %26 (ampersand w ASCII), może pomóc, może nie, ale taka pierwsza myśl.

Ten post edytował pedro84 23.04.2010, 13:25:49
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: 16.10.2025 - 09:22