I made a URL shortening service a year back using PHP & jQuery. It was pretty simple. You should know the concept of URL Shortening. The concept is simple. When a user sends a request to short a URL, PHP will check if the URL is valid. If it’s valid then PHP will make a string of 5 or 6 characters. A folder is created with the name of this string and an index.php file with headerfunction code is created in this folder. This will make the folder redirect to the URL the user requested. Since it’s a folder no extensions will be seen ! So You can make up some pretty good URL‘s.... [READ MORE]
Every Success Blog was popularized with the social integration such as Like Box, Share Box, Commenting and others. The social sharing widget will help other users to reach your blog. So, In this tutorial I’m going to tell you how to add a FloatingLike Box. I made the like box floating, because wherever the user goes the like box will also go with him. Hence the user will notice the like box all the time and he will click sometime during his visit. The liking action will be posted to his Facebook Wall or Google + page or his Twitter and his friends who sees this post will also visit. That friends too like your post if it is good and thus your post will pass along a lot of people.... [READ MORE]
This tutorial was suggested by SWDS. To send an e-mail using GMail’s SMTP server, you need extra help. Download the latest version of Swift Mailer Package from here.
This mailing class is simple, that’s why I recommend you to use Swift Mailer. If you have enabled application specific password feature on Google Accounts, you may have to generate a new application password and use that password for SMTP authentication. Otherwise the example won’t be able to login to your google account.... [READ MORE]
Google‘s DNS service is spreading rapidly. It’s time for you to use it. I used it and noticed some great speed changes even though my internet is just a dial up connection. Here is how to set up Google‘s DNS on your Ubuntu Linux. Open Network Settings (network-admin) by going to System -> Preferences -> Network Connections. Go to your default net connection and click on Edit button.
As you know, Google Chrome‘s Browser History is not efficient. It’s history is not like any other browsers. I think they made the History page in a hurry. If we want to search for a page we visited before, we won’t get it by searching on History page. That’s the main problem. This problem was solved when a lot of users created an alternate History Page extension on Chrome Webstore. In this post I’m gonna tell the most used History Alternate Extension. It’s Better History extension. You can download the extension from here. Deleting:... [READ MORE]
From my experience with Adsense I got disapproved after a visit from a URL to my blog. The URL was SPAM which is known as REFERRAL SPAM. See more about REFERRALSPAMhere.
Why Adsense account got disapproved of Referral SPAM ?
In the GoogleAdsense policies, It says that you should not pay someone to visit your blog/site. When you are placing the ad on your blog, Google tracks each visit to your blog. When they see a suspicious URL in the traffic sources they count it as a paid to click URL. Hence you will get disapproved.... [READ MORE]
Google PHP Library is very hard to use and is very long. It wasted a lot of my time. So I decided to do it manually. I created a new library for Google OAuth in PHP.
It is very simple to use and you don’t have to worry about a thing.
FAQ
How to get a client Id and Client Secret ?
1) Go to https://code.google.com/apis/console and create a new project. 2) Fill up the form. 3) In the redirect URL’s type in the URL of the index.php in your site. 4) Add your site URL as trusted Origin. You will now get a client Id and a Client Secret Id. Type both of those in each $client_id and $client_secret variable of Configuration section in index.php file.
This is a trick using Google Profile. First of all we are going to set a variable with a Google E-mail address(Gmail address). We are going to set it with my E-mail address
$email=’subins2000@gmail.com’;
Then we are going to split @ from the mail address.
list($id, $domain) = split("@",$email);
Next we are going to send a request to Google Profiles to fetch the IMAGE url.