Instead of using cURL, you can use file_get_contents() function to achieve the same thing.

[geshi lang=php]$url = “http://api.bitly.com/v3/shorten?login=username&apiKey=R_secret&longUrl=http%3A%2F%2Flornajane.net”;
$result = json_decode(file_get_contents($url));
print_r($result);
[/geshi]