Hi there,
I've written a cron script, part of which uses the TinyURL API to return a shortened URL. My script is returning false on this line:
(the 'tinyurl/api-create' part above has been modified because the forum wouldn't let me post the full URL to the API as it thought I was spamming!)Code:$short_url = file_get_contents( 'tinyurl/api-create?url='. $long_url );
The script works perfectly when run in the browser, but not when run as a cron job on the server. Does anyone know an alternative way of doing this which will work when run on a server?
Thanks in advance for any help you can give me.






Bookmarks