PHP Tutorials
How to change PHP version in cPanel
It is always important to use the stable, secure, and latest version of PHP. So, in this short tutorial, we are going to see how to change PHP version in cPanel for any kind of website. Besides security, it is important for the website’s performance speed as well. cPanel is a web based control panel software provided by your Web Hosting provider which provides a graphical interface to manage different tasks for managing your hosting or website. Read More
Get image width and height in PHP
In this quick tutorial, i am going to show you a simple way to get image width and height in PHP using a function getimagesize(). This is a very useful function in PHP, it provides function to get the width and height of an image. The getimagesize() function will determine the size of image file including flash file(swf). Read More
Simple PHP User Login / SignUp Script Tutorial
In this tutorial we are going to create simple php user login / signup script tutorial using php and mysql as database. In this script, a form will be displayed with two fields, username and password. When user is submitting with valid username and password, then he can access authenticated (my-account) page. Otherwise user again has to fill in the form. Read More
Generate Random Password with PHP
When creating web apps, there is often a need to generate a random password for your new or existing users. There are a number of ways to do this, but in needing to do it recently I came up with this very simple function that will generate a random password (or any other random string) of whatever length you wish. It's particularly useful when generating passwords for users that they will then change in the future. Read More
Simple Contact form using Jquery Ajax & PHP
In this tutorial we will be creating a simple Ajax based Contact form using jQuery and PHP. This Tutorial is pretty basic, you should be able to pull it off if you are bit familiar with HTML, PHP and jQuery. Read More
Encrypting Password in PHP
In this simple tutorial we will be encrypting password in PHP. If you are developing a password-protected web site, you have to make a decision about how to store user password information securely. Read More
Simple Contact Form with PHP
In this tutorial find a basic website form using only HTML (for the form) and PHP for the form processing. Along-side the HTML form you will find a basic PHP script which will capture the form submissions and send the form contents to your email address. Read More
Send Email With PHP
So, you want to send automated email messages from your PHP application. This can be in direct response to a user's action, such as signing up for your site, or a recurring event at a set time, such as a monthly newsletter. Read More
How to Redirect in PHP (Page or URL)
You can use this simple PHP script to redirect a user from the page they entered to a different web page or to different website. This will show you a better way to redirect in PHP. Using this method, they can be seamlessly transferred to the new page without having to click a link to continue. Read More