Sunday 30 December 2012

How to get the Extension of a File Using PHP

This tutorial teaches you how to get the extension of any file for instance, gif from image.gif or any other file of your choice using PHP.

There are situations where you may need to get the extension of a given file for a certain purpose.

You may need to get the extension of the file in order to re-size it or you may need to check to see if an uploaded file has a particular extension so as to perform a certain task.

There are numerous ways to do this using PHP.

You can check the physical file type, you can use string position to count in from the end of the string, you can use a regular expression to find the extension, or you can use explode to split the string and then count the array and use the last value in the array as the extension.

All depends on your choice of coding operation and the security requirements. 


How to get the Extension of a File Using PHP

Saturday 29 December 2012

Multiple File Upload using Ajax, Jquery and PHP

This tutorial helps and teaches you how to create a simple but powerful multiple file upload with an option to remove unwanted added files using Ajax, Jquery and PHP.

To add or upload a file, simply click on the Browse File button, select the file that you wish to add or upload and that file will be uploaded automatically without any additional submit button.

You can add or upload as many files as possible provided the file type is in the list of allowed file formats.

The system supports all browsers and the script is written in a way that any one can easily understand and customize with proper programming code comments to ease usability.

No configuration is required to use or install the system on your server.

Multiple File Upload using Ajax, Jquery and PHP

Facebook style Search People and Products using Ajax, Jquery and PHP


This tutorial teaches you how to automatically search for People and Pages as a user types into the search box his or her search term just as Facebook does using Ajax, Jquery and PHP.

This is an auto-suggestion system that helps you to create a user friendly search system with results displayed on the screen and in a nice format as the users of your system or website type in their search terms.

This is an Ajax, Jquery and PHP script and its very simple to understand and customize.


Monday 24 December 2012

Private Messaging System similar to Facebook using Ajax, Jquery and PHP

This tutorial helps and teaches you how to build a simple but powerful Private Messaging System which is similar to that of Facebook with amazing features such as the following:

(1) Sign up and Login without page refresh. 
(2) Displaying of users in the system which could also be referred to as Friends List.
(3) Sending of messages without page refresh.
(4) Displaying of newly sent message(s) without page refresh.
(5) File attachments.
(7) Hide and show send message button.
(8) Press enter key to send messages.
(9) View all conversations had with users.
(10) Nice view of date and time messages are or were sent.
(11) Delete messages without page refresh.
(12) Nice confirmation box for message deletion and log out, etc.

The system supports all browsers and the script is written in a way that any one can easily understand and customize with proper programming code comments to ease usability.


Private Messaging System similar to Facebook using Ajax, Jquery and PHP














Friday 21 December 2012

Encryption and Decryption with RC4, Base64, MD5 and SHA1 using Jquery and PHP


This tutorial teaches you how to encrypt and decrypt information with RC4, Base64, MD5 and SHA1 using Jquery and PHP.

The tutorial is a very simple to understand application with proper programming code comments and you do not need to carry out any configuration.

More information about each of these algorithms (RC4, Base64, MD5 and SHA1) are given on the demonstration page for this tutorial.



Wednesday 19 December 2012

Check Any Website Status (Online/Offline) using Ajax, Jquery and PHP


This tutorial helps and teaches you how to check the status of any given website right from your own server to verify if that website is online or offline using Ajax, Jquery and PHP without having to refresh your website page.

The tutorial is very easy for any one to understand and customize with proper programming code comments to ease usability.

Check Any Website Status (Online/Offline) using Ajax, Jquery and PHP

Create Subdomain in Cpanel using Ajax, jquery and PHP

This tutorial teaches you how to create a sub-domain in your Cpanel using Ajax, jquery and PHP.
The script is written in a way that any one can easily understand and customize with proper programming comments.

Create Subdomain in Cpanel using Ajax, jquery and PHP

Tuesday 18 December 2012

Todo List using Ajax, jquery and PHP


This tutorial helps and teaches you how to create or build a simple but powerful To-do List using Ajax, jquery and PHP.

To-do list helps you to add and save vital information that can be edited and deleted at any point in time.

The application supports all browsers and the script is written in a way that any one can easily understand and customize with proper programming comments.

Todo List using Ajax, jquery and PHP

Sunday 16 December 2012

Footer Contact Form using Ajax, Jquery and PHP

This tutorial teaches you how to create a simple but powerful, footer and nice looking contact form with animation features using Ajax, Jquery and PHP.
The contact form supports all browsers and the script is very easy to understand and customize with proper code comments.
To install the system on your server, simply download the zipped folder containing the required files, extract it to your system and then open a file named js/vasplus_programming_blog_mailer.php, look at the code line number 52, remove the content "YOUR_EMAIL_HERE@YOUR_SERVERNAME.com" and insert your email address exactly in that space, save the file and upload the entire content of the directory "footer_contact_form_via_ajax_jquery_and_php" to your server.
Locate the directory via your web browser and you are done to start receiving emails through the contact form.
Footer Contact Form using Ajax, Jquery and PHP


Saturday 15 December 2012

Shopping Cart using Ajax, Jquery and PHP

This tutorial teaches you how to create a simple but powerful shopping cart using Ajax, Jquery and PHP.
The shopping cart supports all browsers and the script is very easy to understand and customize with proper code comments.
To install the system on your server, please download the zipped folder containing the required files, extract it to your system then, open the file named README.txt and follow the three steps instructions given.




Click here to view this tutoeial

Thursday 13 December 2012

Confirmation Box using CSS and Jquery

This tutorial teaches you how to create a nice and pretty confirmation box using CSS and Jquery.
The script is written in a way that any one can easily understand and customize with an appropriate programming comments to further explain the snippets.
To install the script on your server, simply download and extract the zipped folder to your system or server and then locate the folder via your web browser.

To make changes to the confirmation box contents, please open the file named vasplus_programming_blog_confirm.js and then change the following contents to whatever you wish.

(1) 'vpb_confirmation_heading' : 'This is the heading or title of the Confirmation Box',
(2) 'vpb_confirmation_body' : 'This is the body section of the Confirmation Box',
(3) 'vpb_proceed_button' : 'This is the content of the proceed button such as YES',
(4) 'vpb_cancel_button' : 'This is the content of do not proceed button such as Cancel'
Note: Every other information that you need to know are well explained in the code.

Confirmation Box using CSS and Jquery


Confirmation Box using CSS and Jquery

Pure CSS Drop-Down Menu


This tutorial teaches you how to create pure CSS drop-down menu without the need for JavaScript.
The script is very easy to understand as it only contains few lines of CSS and HTML codes.
To install the system on your server, just download the zipped folder containing two files which are index.php and styles.css and then extract the folder to your system or your server.
Locate the folder containing these two files via your web browser and you are done.

Pure CSS Drop-Down Menu

Click here to view this tutorial

Facebook style expand collapsed comments using Ajax, jquery and PHP


This tutorial teaches you how to create Facebook style of expanding collapsed comments using Ajax, jquery and PHP.
The script has been written in a way that any one can easily understand and customize.
To install the system on your server, simply download the zipped folder, extract it to your machine and follow the three steps instruction given in the README.txt file.

Facebook style expand collapsed comments using Ajax, jquery and PHP

Click here to view this tutorial

Post to any wall on Facebook using Ajax, Jquery and PHP


This tutorial helps and teaches you how to reqularly post status updates from your systems or personal websites to your Facebook wall or the walls of your Facebook friends via Ajax, Jquery and the power of PHP.
The system gives you or your website users the option or the ability to establish connection between your website and Facebook before status updates can be posted.
The system does not work on a local machine or localhost as it has to do with Facebook which is on a remote server and its very easy to understand and customize.
To install the system on your server, simply download the zipped folder, extract it to your machine and follow the four steps given in the README.txt file.

Post to any wall on Facebook using Ajax, Jquery and PHP

Post to any wall on Facebook using Ajax, Jquery and PHP

Click here to view this tutorial

Easy Photo Scroller using Ajax, Jquery and PHP

This tutorial teaches you how to create an easy or a very simple but powerful photo scroller application using Ajax, Jquery and PHP.
The script is written in a way that any one can easily understand but if you need any further help, please post it in the comment at the bottom of this explanation.
To install the system on your server, simply download the zipped file, extract it and follow the three steps instruction given in the README.txt file.

Easy Photo Scroller using Ajax, Jquery and PHP

Facebook and Twitter style load more contents using Ajax, jquery and PHP


This tutorial teaches you how to load contents or more contents from your database table using Ajax, jquery and PHP.
This tutorial happens to be the best, more accurate and simplest way to load your contents or data from the database on the internet.
The script is written in a way that any one can easily understand and customize.
To install the system on your server, simply download the zipped file and follow the three steps instructions given in the README.txt file.

Facebook and Twitter style load more contents using Ajax, jquery and PHP

Facebook and Twitter style load more contents using Ajax, jquery and PHP


This tutorial teaches you how to load contents or more contents from your database table using Ajax, jquery and PHP.
This tutorial happens to be the best, more accurate and simplest way to load your contents or data from the database on the internet.
The script is written in a way that any one can easily understand and customize.
To install the system on your server, simply download the zipped file and follow the three steps instructions given in the README.txt file.

Facebook and Twitter style load more contents using Ajax, jquery and PHP

Facebook style Like / Unlike or Delete posts using Ajax, Jquery and PHP

This tutorial teaches you how to create Facebook style of Like, Unlike or Delete comments or posts buttons using Ajax, Jquery and PHP.
For demonstration purpose and to avoid users log in or authentication, the IP Addresses of users are used to identify each user. You can replace these IP Addresses with a session variable if you wish.
This tutorial gives you an insight on how these things are done.
To install the system on your server, simply follow the three steps given in the README.txt file upon downloading and extracting the zipped file to your system.


Animated Pagination using Ajax, Jquery and PHP

This tutorial teaches you how to create an animated pagination with the help of Ajax, Jquery and PHP without having to refresh your website page.
It is a very simple to understand scripts as it only has few lines of codes.
To install the system on your server, just download the zipped file, extract it to your system and follow the 3 steps given in the README.txt file.


Post and Delete records with animated fadeIn/fadeOut effect using Ajax, jquery and PHP

This tutorial helps and teaches you how to post and delete comments or records to and from your database with an animated fadeIn or fadeOut effect without having to refresh your web page using Ajax, Jquery and PHP.
The script is written in a way that any one can easily understand and customize.
All you need to do is to download the zipped folder, extract it to your server, open the folder and locate the README.txt file and then follow the instruction given in that file to install the system on your server.


Click here to view this tutorial

Post and Delete records with animated fadeIn/fadeOut effect using Ajax, jquery and PHP

This tutorial helps and teaches you how to post and delete comments or records to and from your database with an animated fadeIn or fadeOut effect without having to refresh your web page using Ajax, Jquery and PHP.
The script is written in a way that any one can easily understand and customize.
All you need to do is to download the zipped folder, extract it to your server, open the folder and locate the README.txt file and then follow the instruction given in that file to install the system on your server.


Click here to view this tutorial

Post and Delete records with animated fadeIn/fadeOut effect using Ajax, jquery and PHP

This tutorial helps and teaches you how to post and delete comments or records to and from your database with an animated fadeIn or fadeOut effect without having to refresh your web page using Ajax, Jquery and PHP.
The script is written in a way that any one can easily understand and customize.
All you need to do is to download the zipped folder, extract it to your server, open the folder and locate the README.txt file and then follow the instruction given in that file to install the system on your server.


Click here to view this tutorial

Digg and Twitter style Follow and Unfollow Application using Ajax, Jquery and PHP

This tutorial teaches you how a create Digg and Twitter styles of Follow and Unfollow items with the help of Ajax, Jquery and PHP.
Currently, i have used the ID of an item along with the IP Addresses of users to check if a specified user is following an item or not. You may create a session and use that in place of the IP Address of a user if you wish.
The tutorial gives you the basics of how to implement this kind of applications. 
To install the system on your server, simply open the file named README.txt and follow the steps given.
The script is written in a way that any one can easily understand and customize.


Post and Delete records with animated fadeIn/fadeOut effect using Ajax, jquery and PHP

This tutorial helps and teaches you how to post and delete comments or records to and from your database with an animated fadeIn or fadeOut effect without having to refresh your web page using Ajax, Jquery and PHP.
The script is written in a way that any one can easily understand and customize.
All you need to do is to download the zipped folder, extract it to your server, open the folder and locate the README.txt file and then follow the instruction given in that file to install the system on your server.


Click here to view this tutorial

Domain Name Checker using Ajax, Jquery and PHP

This is a domain name checker system that helps you to check for an available domain names on the internet.
All you need to do is to provide a name and press the search button to check if your supplied name is still available on the net or not.
The script gives you a detail list of all available domains with the name you provide and its very simple to understand and customize.


Chat Script Using PHP, Ajax and Jquery

This tutorial helps and teaches you how to create a simple but powerful cross-browser chat system via Javascript (Ajax / Jquery) and PHP.
The script supports all modern browsers with features like login, signup, logout, new chat notification, users online without page refreshing and smileys etc.
The script is very easy to understand and customize. Just download the zipped folder containing the chat files and follow the instruction given in the README.txt file to install and customize the system.













Auto-suggestion using Ajax, Jquery and PHP

This is an auto-suggestion script that helps you to create a user friendly search system with results displayed on the screen and in a nice format as your users type in their search terms.
This is an Ajax, Jquery and PHP script and is simple to understand and customize.


Comment System Using Ajax, Jquery and PHP

This tutorial teaches you how to build a Simple and User Friendly Comment System whereby users on your websites can leave comments on updates or other information as you wish.
This powerful comment system supports all latest browsers and programming languages used are PHP, Ajax and Jquery.
The script is very easy to understand and customize. Just follow the instructions given in the README.txt File to install the system.


Display RSS Feeds using PHP


This tutorial helps and teaches you how to display contents from your database in an XML Format - RSS Feeds on your server.
RSS Feeds helps you to distribute up-to-date web content from one web site to thousands of other web sites around the world.
RSS Feeds allows fast browsing for news and updates.


Ajax and Jquery Registration or Sign-up Form Submission

This tutorial teaches you how to create or build a registration or sign-up form via Ajax and Jquery without refreshing the page.
Users information are passed to PHP which processes the info and save them to the database if necessary.
The programs are very easy to understand and customize.


Expand and Adjust Textarea Box via Ajax and Jquery

This tutorial teaches you how to expand a text-area box on focus in or mouse in, display the content of the text-area box on the screen and adjust the box on focus out or mouse out via Jquery.
The script is very simple to understand and customize.


Send Email with Cc, Bcc and File Attachment via PHP

This tutorial teaches you how to send email messages to multiple users or friends with files attachment through PHP.
File attachments are in MIME format and the script is written in a way that any one can understand and customize.


Calculate Age from Birth Year via PHP

If you have a system where you need to calculate the actual age of your users from their year of birth, this tutorial brings an end to such problems. 
The tutorial helps you to calculate the age of a user from a given year of birth. To calculate the age of a single user, just pass the year of birth of that user to the below function to output the user's age on the screen.
To calculate the ages of multiple users, simply pass the ages of these users in a while loop based on the year of birth of these users from your database etc, to the below function to output their ages on the screen.
Below is the age calculation function and an example of how to pass a user's year of birth to the function and display it on the screen.

Code:
<?php
$years = "1985"//Assigned year of birth - This is the area you can pass your user's birth year
function calculateAge($birthdate)
{
      return floor((time() - strtotime($birthdate))/31556926); 
}
print calculateAge($years)." year(s)"//This one displays the user's actual age
?>



Username Availability Checker via Ajax and Jquery

This tutorial teaches you how to check your database for an existing information to avoid duplicates.
These information could possibly be a username, an email address or any other information you deem necessary. This tutorial helps you to avoid repetition of information in your database table(s)
The script is written in a way that any one can easily understand and customize.


Login with Gmail Accounts

This tutorial helps and teaches you how to ease logins on your websites through the Gmail Accounts of your website users.
This is a complete PHP script that gives your users the ability to log into your websites using their Gmail Accounts.


PHP File Download Script

This tutorial helps you and your website users to download any type of files from your remote server to your location machine.
This is a complete PHP application that relies mainly on PHP headers and can easily be understood and use for your work.


Load External Page Contents or Load Contents from Database via Jquery, Ajax and PHP

This tutorial teaches you how to load an external page contents or dynamically display contents from the database through the help of Jquery, Ajax and PHP.
With this tutorial, you can load all your external page contents from the database with a click of a button and much more.
The script is written in a way that any one can easily understand and customize.



Simple Jquery, Ajax and PHP Anti-Spam Captcha Script

A good way to avoid automatic form submissions when creating a web form or to prevent automated web robot tools and spammers from taking advantage of your forms and scripts is to use some kind of verification process. 
One of the best ways is to use an image verification also known as captcha. What it does is to dynamically create an image with a random string displayed on it. Then visitors or users of your site are asked to type that string in a text field and once the form is submitted, it checks if the string on the image matches the one inputted by the user. 
Because there is no easy way to read a text from an image (image recognition) this is a good way to protect your web forms from spammers.



Create New Accounts and Login via PHP and Mysql

This tutorial teaches you how to build a secure users registration and log in system whereby users of your websites will be able to create their accounts, log in with their valid information so as to access their various accounts.
Users information during sign up process are validated and stored in the database. The system validates new users for duplicate email addresses and performs valid authentication during registered users log in.
This is a complete PHP and MySql system. Programs are written in a way that any one can understand and customize.



Live edit of Information using Ajax and Jquery

This tutorial helps you to edit your information instantly without having to click on save changes button to have your updated information saved.
Ajax and Jquery does these things easily for you without much effort while PHP does the saving of the changes made.



Upload Image Files without Page Refresh using Ajax and Jquery

This tutorial will teach you how to upload your image files or any type of file to your servers without refreshing your website page.
The languages used for this tutorial are PHP, Ajax and Jquery. The program is written a way that any one can easily understand and customize.
Ajax and Jqery have made life easier for us all. We no longer need to refresh our website pages while uploading files to our servers and this is cool guys. 



Detect and Redirect Mobile Devices using PHP

You must have been thinking of how to build a mobile version of your existing website.
This tutorial helps you to detect and redirect all mobile devices to a page designed for mobile users on your server.
In the case of no special page designed for mobile devices and wish to have one, Just create any page such as mobile.php, drop this file in the same directory as your index page which is normally the first page users see whenever they view any website and copy the below code to this index page or the first page that your users see each time they view your site.
Put the code at the very top of your index page and you are done. All you will need to do next is just to customize your mobile.php page for your mobile users as every mobile device that views the index page will be redirected to this mobile.php page.



Submit form without Refreshing Page using Ajax and Jquery

This Tutorial will help and teach you how to submit your forms without refreshing your website page which is time consuming and annoying using Ajax and Jquery. 
Unlike PHP form where each time you click on your submit button, the whole page refreshes and most time when your internet connection is slow, page will take longer time to appear for you to proceed with your form submission.
Ajax and Jqery have made life easier for us all. We no longer need to refresh our website pages while forms are been submitted and this is cool guys.