All posts by Shah Alom

Ajax File Upload Tutorial

In this article you will see how to upload file using JavaScript, iFrame so that it looks like uploading file using Ajax. As we know that to create a pure Ajax file upload system is not possible because of security limitations of JavaScript. All of the Ajax upload systems use some third party tools for […]

Read and Split text file with PHP

Hi there, recently one of my client ask for a script, that is he has a text file containing about 100000 lines. Now he needs to split those files into several files. In this tutorial I am going to describe about the simple script. After complete this script you can do the followings with it: […]

Define a Favicon Icon

A favicon(short for favorites icon) is an icon associated with a particular website or webpage.  A favicon also known as a shortcut icon, Web site icon, URL icon, or bookmark icon. The consequences were that the use of a reserved location on a website is no longer required and the favicon file can be located […]

Execute PHP Code from Database

Hi there, Recently in a project  I need to execute PHP text from database. Primarily I was confused how to execute text. But it is solved using the eval() function.  The eval() function evaluates a string as PHP code.  The string must be valid PHP code and must end with semicolon. In this tutorial You […]

Crop Image with Yahoo & jQuery Library in PHP

Hello, In this article I will show how to crop image in PHP. I have also used Yahoo & jQuery, prototype library to do this. Let’s begin our tutorial: Files Structure for this package: Index.php crop_image.php cropper.php css/chooser.min.1.5.css css/cropper.min.1.2.css js/carousel.min.1.12.js js/cropper.min.1.4.js js/ js/ yahoo-min.js media/images media/temp Lets create a form in the “index.php” file […]

Import CSV file data to show in HTML with PHP

This simple script shows you how to import data of a CSV file and for show purpose we will us an HTML table.  First we will create a form so that we can browse CSV file. Use the below code: <table cellpadding=”0″ cellspacing=”0″ border=”1″ style=”width:600px; min-height:30px; margin:0 auto;”> <tr> <td colspan=”3″ align=”center”> <form action=”<?php echo […]