curl
    ~
Advanced Hosters -

uncleedik
: 13.01.2008
: 13
# : 16, 2008 6:01 pm
. , .
curl url .


$ch =curl_init(" ");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_exec($ch);
$url=curl_getinfo($ch,CURLINFO_EFFECTIVE_URL);
curl_close($ch);


Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home//index.php on line 15

. safe_mode open_basedir. ?

Drinks or Beer

agrasoff
: 08.12.2007
: 106
# : 16, 2008 9:13 pm
- 302 "", , .

: http://ru2.php.net/manual/en/function.curl-setopt.php#79787 (function curl_redir_exec($ch,$debug="") ... )
US. Budget, Business, Dedicated. 375 GB $3 .

Kerk
: 30.09.2007
: 550
# : 16, 2008 9:33 pm
:
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // allow redirects



. safe mode . Smile
, Wink

ctapbiu
: 06.01.2008
: 328
# : 16, 2008 10:21 pm
uncleedik, open_basedir, CURLOPT_FOLLOWLOCATION ,

Kerk,
:
. safe mode . Smile



uncleedik
: 13.01.2008
: 13
# : 16, 2008 10:45 pm
CURLOPT_FOLLOWLOCATION , $url=curl_getinfo($ch,CURLINFO_EFFECTIVE_URL); .
agrasoff, . .
    ~