Quick short URL PHP function
function shortURL($long) { $short=file_get_contents(“http://is.gd/api.php?longurl=”.$long); return $short; } Usage: $short = shortURL(“http://veryveryveryverylongurl.tld/something/verylong.php”); echo $short;
Free software or open source related posts.
Enjoy!
function shortURL($long) { $short=file_get_contents(“http://is.gd/api.php?longurl=”.$long); return $short; } Usage: $short = shortURL(“http://veryveryveryverylongurl.tld/something/verylong.php”); echo $short;
In my last project I have to make to work together a vTiger instalation, a WordPress form and an Imap account. The best decision was to create 2 SOAP services to handle 2 requests: Show me the code 1. Setup the webforms.php. The good thing is – you can use this SOAP service to fill … Read more
I am looking at Twilio API right now for a project and I am surprised how easy is to handle voice and SMS messages. Here is an example, written by me: GitHub If you are interested in this topic, or if you have some ideas, please join me at my test repo @ Github
I just finished my “share2” WRT (Web Runtime Toolkit) widget. It allows me to post quick messages to my WordpPress blog or to any blog that uses MetaWeblog API. Here are some key parts from the script: Ajax function that sends the requests and gets the result function ajExec(url, param, callback, isXML) { var req … Read more
If you are wondering where Firefox stores the token from XAuth (all localStorage data), the answer is in webappstore.sqlite in your profile folder. The main idea of the XAuth is that the declared token will be accessible only from the XAuth.org domain and you don’t have the opportunity to see what exacly has been saved … Read more
What is XAuth? XAuth is an open platform for extending authenticated user services across the web. Participating services generate a browser token for each of their users. Publishers can then recognize when site visitors are logged in to those online services and present them with meaningful, relevant options. Users can choose to authenticate directly from … Read more