Sunday, 15 August 2010

how to get url string in php or javascript -



how to get url string in php or javascript -

please help me regarding issue , if goto

https://graph.facebook.com/billgates/picture?type=large

it redirect next link:

https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xfa1/t1.0-1/c10.10.130.130/181592_10150105700371961_7986881_n.jpg

how can write function first link input , echo sec link output ?

try this

`$url = 'https://graph.facebook.com/billgates/picture?type=large'; $ch = curl_init(); curl_setopt($ch, curlopt_url, $url); curl_setopt($ch, curlopt_ssl_verifypeer, false); curl_setopt($ch, curlopt_url, $url); curl_setopt($ch, curlopt_followlocation, 1); curl_setopt($ch, curlopt_timeout, 30); $exec=curl_exec($ch); $redirect_url = curl_getinfo($ch, curlinfo_effective_url); echo $redirect_url;`

javascript php

No comments:

Post a Comment