Category Archives: Scripts

Create image thumbnail using PHP

Hi, Today I am going to write about a simple PHP script that enable your php project to resize image according to mentioned measurment. You may also create proportionate size thumbnail of any image. At the end I have added a download link of the script so that you can practice or make something more […]

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: […]

JavaScript Cookies

What is Cookies? A cookie is a variable that is stored by the site when we request a page with a browser. With JavaScript, we can both create and retrieve cookies values to process as our need. In this tutorial we will see how to set and retrieve cookies with JavaScript. First, we will create […]

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/ toolkit.events.min.1.0.js js/ yahoo-min.js media/images media/temp Lets create a form in the “index.php” file […]