Posts marked with "Google" in tags

Create Your Own URL Shortening Service Using PHP & jQuery

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 header function code is created in this folder.

[READ MORE]

Add Floating Like Box to Blogger Blog

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 Floating Like 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.

[READ MORE]

Send Email using GMail SMTP server in PHP

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]

Setting up Google DNS in Ubuntu

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. You will get a window like below :

[READ MORE]

Better Google Chrome History Page

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.

[READ MORE]

The main reason why adsense was disapproved

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 REFERRAL SPAM here. Why Adsense account got disapproved of Referral SPAM ? In the Google Adsense 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.

[READ MORE]

Login with Google OAuth without using Google PHP Library

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. Download Demo 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.

[READ MORE]

List of Google OAuth Scopes

Here is the list of Google OAuth Scopes. It can be used for different purposes. Adsense Management <td class="secondary"> https://www.googleapis.com/auth/adsense </td> </tr> <tr class="op-menutrstitem op-menuchecktrstitem multiple" val="https://www.googleapis.com/auth/gan"> <td style="margin-right: 20px;"> Google Affitrate Network </td> <td class="secondary"> https://www.googleapis.com/auth/gan </td> </tr> <tr class="op-menutrstitem op-menuchecktrstitem multiple" val="https://www.googleapis.com/auth/analytics.readonly"> <td style="margin-right: 20px;"> Analytics </td> <td class="secondary"> https://www.googleapis.com/auth/analytics.readonly </td> </tr> <tr class="op-menutrstitem op-menuchecktrstitem multiple" val="https://www.googleapis.com/auth/books"> <td style="margin-right: 20px;"> Google Books </td> <td class="secondary"> https://www.

[READ MORE]

Get Google Profile Picture URL by email id using PHP

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=’[email protected]il.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. $headers = get_headers("https://profiles.google.com/s2/photos/profile/".$id, 1); The variable $id above is from the splitted part.

[READ MORE]

My Short URL – a site for shortening URL’s

My Short URL is my latest invention. A site for shortening URL’s like goo.gl and bit.ly. You can short URL’s on the site MSURL.TK. <div> </div> As other projects the site is also hosted by AppFog and the free domain is given by My.Dot.TK. The project was created under 30 minutes and the lines of code is less that 64. It’s written in PHP as you already know it.

[READ MORE]

Donate

If you found something helpful, please consider a donation to support this site and projects :)

Donate

Subdomains

DemosLab

Past

This blog was once on WordPress. Now a static site. See source code on

GitLab