In the last post, I introduced you to a PHP OAuth Class named OAuth API. In this post I’m going to tell you how to implement Login With Google + feature in PHP using the class I introduced. It’s very simple. I will tell the ways of implementing step by step. This tutorial includes placing a **Login with Google + **button on web site to authorization and finishes when we get user details. You should read this post before starting this tutorial.
... [READ MORE]Posts marked with "PHP" in categories
Image Handling On Client Side With Base64 In PHP
Every website needs images. It make the site attractive and beautiful. But sometimes, images won’t get loaded. The latest **Browsers **have a feature that generates image on a base64 string. Most of the browser have it. In this post I’m going to describe the way to use base64 in displaying images on a website.
What’s base64 ?
Base64 is a encrypting method which is available in many languages. It can be used for encrypting and decrypting. It is not like other hash functions (MD5, SHA 256, SHA 512). Unlike other hash methods, a base64 encrypted string can be directly decrypted. But other hash functions can only be used for checking a value.
... [READ MORE]Implementing Login With Facebook In PHP
In the last post, I introduced you to a PHP OAuth Class named OAuth API. In this post I’m going to tell you how to implement Login With Facebook feature in PHP using the class I introduced. It’s very simple. I will tell the ways of implementing step by step. This tutorial includes placing a Login with Facebook button on web site to authorization and finishes when we get user details. You should read the previous post before starting this tutorial.
... [READ MORE]Implementing OAuth System Using OAuth API Library In PHP
OAuth Login System is one of the needed system in a website. There are many online services that have their own OAuth system. Popular Services have their own PHP OAuth library and documentation.
But, we’re gonna use a simpler and a common Library for all of those services. This common library (OAuth API) is created by PHPClasses.org founder Manuel Lemos.
His library can be used to authorize many API‘s including Facebook, Twitter, Google. Everything is made easy by Manuel. He is a hard working programmer. That’s why he has the # 1 rank on PHP Classes.
... [READ MORE]Uploading Images Using Imgur API in PHP
Imgur provides developers to upload images anonymously using their app. For this you only need to signup for Imgur and get an Application Client ID. In this post I’m going to tell you the step by step process of uploading images using Imgur API in PHP. This is pretty easy. You only have to send a POST request to a file on their site.... [READ MORE]
How To Create A Simple Web Crawler in PHP
A Web Crawler is a program that crawls through the sites in the Web and indexes those URL‘s. Search Engines uses a crawler to index URL’s on the Web. Google uses a crawler written in Python. There are other search engines that uses different types of crawlers.
In this post I’m going to tell you how to create a simple Web Crawler in PHP.
The codes shown here was created by me. It took me 2 days to create a simple crawler. Then How much time would it take to create a perfect crawler ? Creating a Crawler is a very hard task. It’s like creating a Robot. Let’s start building a crawler.
... [READ MORE]How To Add A Simple Birthday Field In A Form Using jQuery
Create Simple Username Availability Checker Using jQuery & PHP
Many sites have signup pages. Every programmers try to make the signup pages attractive by adding stylish input CSS codes and others. Why not add a stylish username availability checker ? It’s very easy to add and will work on jQuery versions 1.2 and up. I’m also going to tell you how to check if username is available in the server side. Of course it’s PHP. The checking is SQL Injection free too. For Executing SQL queries we will use PHP PDO.
... [READ MORE]How To Use FileZilla/SFTP To Update Site in OpenShift
In the recent post, I mentioned about OpenShift, a PaaS Service that offers Free Hosting. You can update your application using GIT. OpenShift also provides SSHing into your application. You may have heard of FTP protocol which allows you to transfer files through web. Most hosting companies use FTP protocol to update client apps. OpenShift unlike AppFog have FTP support, but in a different manner.
It has SFTP support ie SSH File Transfer Protocol. SFTP is a FTP like protocol that allows to transfer files via SSH sessions. Most FTP clients support SFTP. FTP client FileZilla supports SFTP which means that you can use FileZilla for updating site hosted on OpenShift. You can download FileZilla from here available for Linux, Mac & Windows.
... [READ MORE]