Archive for the ‘PHP’ Category
PHP: Get intersecting dates between 2 date ranges
Here is a small code snippet that will give you intersecting dates between 2 date ranges. Say, for example, you have 2 date ranges, 1-Jan-2011 to 31-Mar-2011 and 23-Feb-2011 to ...
PHP class for expanding and shortening URLs using Google URL shortener API
I have combined the 2 previous posts for expanding and shortening goo.gl URLs and have created a small class for it. Below is the download link for the class.
Expanding a ...
WordPress Internal Server Error 500 in wp-admin
If you are getting an internal server error 500 after installing wordpress while accessing admin, here is the fix.
Most likely it is caused by low memory limit on your server. ...
PHP: Shorten URLs using Google URL shortener API
In past 2 posts you saw how short URLs can be expanded using the Google URL shortener API. This post shows how URLs can be shortened using this API.
API key ...
Using PHP and cURL to expand URLs using Google URL shortener API
Yesterday I wrote this post explaining how short goo.gl URLs can be expanded using the newly launched goo.gl API. In that code we used php function get_file_contents to get the ...
PHP: Expanding URLs using Google URL shortener API
Yesterday. google launched an API for its URL shortening service http://goo.gl. Using this API developers will be able to expand/shorten URLs and get a user’s analytics and history programmaticaly.
Below is ...
