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.
$headers = get_headers("https://profiles.google.com/s2/photos/profile/".$id, 1);
The variable $id above is from the splitted part.
Finally we have to get the URL of the user’s profile picture.
...
[READ MORE]
January 25, 2013
PHP
My Short URL is my latest invention. A site for shortening URL’s like
goo.gl and
bit.ly.
<div>
You can short URL’s on the site <a href="http://msurl.tk/" style="font-weight: bold;">MSURL.TK</a>.
</div>
<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.
The shortened URL only has 13 characters (without HTTP://).
The shortened URL will not have .php extension. I will tell you how to view page without file extension on the next tutorial.
Enjoy Shortening URL !
...
[READ MORE]
January 7, 2013
MySQL, PHP, WordPress
This is my 5th project.
The Subins Games. This site is for playing games.
Functions
-
Commenting
-
Score saving
-
Play History
-
Add your game
-
Game stats
(And adding new ones!)
Like all the other projects this project has used Javascript Library Jquery and the server side language is PHP.
This site’s games is the combination of old
PFOGB and
G2E.
The main problem I faced was the merging of two blogs to one. It was very difficult to merge manually.
So I used WordPress in my localhost to import posts from blogger and exported the posts in XML format.
Then I used PHP to insert the XML file contents to MySql Database. Thankyou WordPress.
...
[READ MORE]