Files and Directories

Recent Tutorial

Twitter Like Profile Image Upload using jQuery AJAX

April 10, 2017
Twitter-like social media websites provide the photo upload feature with a list of action bar items, related to the upload process. These actions may be Insert New Photo, Update Photo, Cancel Upload or Remove Photo. On clicking the upload photo link, these options are shown to the user in a floating HTML element by using […]
This tutorial was added to PHP.

Pause Resume File Upload using JavaScript

April 7, 2017
In this tutorial, we are going to see how to implement file upload with pause and resume options using FineUploader. These options will be useful when you upload large size files consuming time to move it to the target. In that cases, the ongoing file upload process can be paused and resumed. FineUploader is a nice […]
This tutorial was added to PHP.

Multiple File Upload using Fine Uploader

March 31, 2017
In this tutorial, we are going to see how to upload multiple files using PHP. I am using “Fine Uploader” a JavaScript, open source and free library. Also, fine-uploader has no dependencies. It is simple and easy to understand. It shows a progress bar during upload and preview for the uploaded files in a gallery form.  Using this […]
This tutorial was added to PHP.

Generate PDF from MySQL Data using FPDF

June 8, 2015
In this tutorial, we are going to see how to generate PDF from MySQL table by using FPDF library. In a previous tutorial, we have seen about simple PDF generation from a text file content by using this library. In this example, we read MySQL table data by using PHP. And then we are calling […]
This tutorial was added to PHP.

PHP PDF Generation using FPDF

May 25, 2015
In this tutorial, we are going to generate PDF from text file data using PHP FPDF library. In this library, there are features to add PDF page, set font, create grid and more. In this example, we are having a text file containing toys detail. We are reading this file content and show it in […]
This tutorial was added to PHP.

PHP CSV File Export Using fputcsv()

October 24, 2014
In this tutorial, we are going to export MySQL records to a CSV File using PHP function fputcsv(). In the previous article, we have formatted the array of database results as CSV string. But by using fputcsv() function we need not format data to export it to a .csv file. View DemoDownload PHP fputcsv() In […]
This tutorial was added to PHP.

PHP CSV File Export

October 23, 2014
In this tutorial, we are going to see how to export MySQL database records to a CSV file. Few days before we have seen about how to read from a CSV file. After connecting to the database, we have to fetch MySQL table records. These database results should be formatted as CSV string with proper […]
This tutorial was added to PHP.

PHP CSV File Read

April 4, 2014
This tutorial is to help you to read a CSV file or data. Character Separated Values(CSV) or Comma Separated Values is a file type containing plain text content with a comma or a character as separators. It is a convenient form to store simple data. PHP has two inbuilt functions to read CSV file. fgetcsv() […]
This tutorial was added to PHP.

PHP file_get_contents()

September 22, 2013
In PHP, file_get_contents() function is one of the file handling functions available in this scripting language. This function reads entire file source or part of it and returns as a PHP string data. This is most widely used function among other dedicated functions used for PHP file read. For example, file(), fread() and etc. PHP […]
This tutorial was added to PHP.

PHP Directory Functions

July 15, 2013
Some days before we have seen set of basic PHP file functions to perform file open, read, write or append operations. Similarly, PHP includes set of directory functions to deal with the operations, like, listing directory contents, and create/ open/ delete specified directory and etc. These basic functions are listed below. mkdir(): To make new […]
This tutorial was added to PHP.

PHP File Handling

May 13, 2013
Using PHP file handling mechanism, we can get external file resources to store as a reference. We have slightly touched about file resources while discussing PHP Resource Data. PHP provides set of in-built functions to handle files. Some of the functions are, fopen(), file_exists(), file_get_contents() and etc. Some of the basic operations to deal with […]
This tutorial was added to PHP.

Uploading Files using PHP

May 2, 2013
PHP provides built-in function move_uploaded_file() for uploading files to a directory. This function requires two parameters, those are the source file and the destination for the moved file. This function will check if the uploaded file is posted via HTTP POST method to protect the file data. The is_uploaded_file is used to check if the file is uploaded […]
This tutorial was added to PHP.

↑ Back to Top