So I came across this bit of php code:
<?php
$long_url = "http://example.com";
$bit_ly = "http://api.bit.ly/v3/shorten?login=your_user_name&apiKey=R_4868094cb43d09fb&longUrl=" . $long_url . "&format=json";
$response = json_decode(file_get_contents($bit_ly));
$short_url = $response->data->url;
?>
I tested this locally and it worked great, once I uploaded it onto my server, I noticed iI was getting some errors, come to find out, jason_decode became standard from PHP 5.2 and my server is running PHP 4 and does not work.
Is there a simple way, without compiling a new version of PHP or adding a library to get this to work with PHP 4?
Thanks for the help!