Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] problem z curlem
Norbit_24
post
Post #1





Grupa: Zarejestrowani
Postów: 163
Pomógł: 2
Dołączył: 7.03.2009

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


Witam,

Chciałem użyć sobie curla. Ale mam problem z CURLOPT_FOLLOWLOCATION

Kod
        $ch = curl_init();
        curl_setopt ($ch, CURLOPT_URL,"http://www.megaupload.com/mgr_linkcheck.php");
        curl_setopt ($ch, CURLOPT_HTTPHEADER, array('Expect:'));
        curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
        curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
        curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);
        curl_setopt ($ch, CURLOPT_POST, 1);
        curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
        $zwrotka = curl_exec ($ch);
        curl_close($ch);


Bo wywala mi błąd:
CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in

Na serwie mi tego nie wyłaczą bo to podstawowe zabezpieczenie.
Podobno mozna to obejść.

Proszę o pomoc.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
wookieb
post
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Nie
Go to the top of the page
+Quote Post
Norbit_24
post
Post #3





Grupa: Zarejestrowani
Postów: 163
Pomógł: 2
Dołączył: 7.03.2009

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


Może źle sie wyraziłem. Nie tyle obejśc to, co wymyślić coś innego aby działało.


//EDIT:

http://www.edmondscommerce.co.uk/curl/php-...r-or-safe-mode/

Nie wiem jak to dokładnie uzyć..

Ten post edytował Norbit_24 27.07.2010, 12:56:47
Go to the top of the page
+Quote Post

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: 18.09.2025 - 01:14