PHP File Manipulation
Results 1 - 20 of 65
File Uploading in PHP 4
This is a step-by-step tutorial that shows how to upload files to the server through an HTML form and PHP. It covers creating the client-side HTML, accessing the file from PHP, and processing the uploaded File in PHP.
PHP Form Image Upload
This tutorial shows you how to upload an image on your server using PHP and html forms. You will also learn how to verify if the uploaded file is an image (checking the extension), if it doesn't overtakes a size limit and how to change the uploaded file...
(show more)
More secure PHP image upload class tutorial
Tutorial how to write secure image upload class. Class has function witch determinate if given file is really image.
Renaming Files within a Directory
Using the common File I/O functions of Php such as opendir, is-dir, readir and rename, this script lists files while extracting unwanted ones and rename them.
Uploading a file in PHP
This article shows how to upload files in PHP. Uploading files in PHP is very easy. You don't have to use any components as you do in ASP. All the file handling is done by built-in PHP functions.
Writing to a File
This script takes some text from an online form and write it to a file on the server. If the file does not exist, it attempts to create it.
Uploading a file and changing the name
Since, php automatically replaces the files with same name. In this Tutorial you will learn how to upload the file and change the name of file after it has been uploading.
PHP include file tutorial
In this tutorial I will show you how to divide your code into more files and how to include various files into your actual PHP code.
Creating file online
In this tutorial I will show you how to create a file on your web server using your browser. We will create a html form which will be store the file during the form processing mechanism.
Create custom backups from your website using cURL
Create a backup script and execute the PHP script using a CRON job. This tutorial is for webmasters if the websites control panel has only capabilities to create full site backups and/or where the access via SSH is disabled.
Creating a file upload system
In this tutorial I will show you how to create a simple file upload system with your user can upload a file from the local computer to your web server. As you will see it is not so complicated to implement this very useful script.
Creating a file manager
In this tutorial I will show you how to create a PHP application to display directory content (filename, file size, modification date) and navigate between them.
Directory Listings, list files and subfolder using php
This is the simple example to list contents of any Directory. To do this we are going to define function DirDisply( ) which will read the current directory contents and display it as a list.
We first open current directory by...
(show more)
Basic PHP File Handling
We've mostly focused on MySQL-type tutorials, but we'll show you in this tutorial the basics of file handling. This includes opening a directory and listing the files, opening a file and showing it's contents and opening, then modifying a file. Deleting...
(show more)
Printable Document Generation with PHP
This article focuses on the document that can be generated using PHP namely Rich Text Format (RTF). Rich Text Format (RTF) is a file type used to transfer formatted text documents between applications, even those that run on different platforms, such as...
(show more)
Reading and writing Data from and into files
View and modify file attributes, read and list directory contents, alter file permissions, retrieve file contents into a variety of native data structures, and search for files based on specific patterns.
Introduction to Files
In this tutorial you will learn how to open, read, write, rename, remove and upload files using one of the best server-side languages -- PHP. It will overview the fopen() function and the different modes needed to open files. It will then teach you how...
(show more)
FTP Upload via cURL
Uploading files to a remote FTP server is very effective while using the cURL library. This short PHP tutorial will show the user how to upload a file to a password protected FTP server.
Tutorial: Create a zip file from folders on the fly
Creating zip files on a web server is a feature which could be very useful for backups or just for offering an unknown number of dynamic files or folder inside of a directory. This tutorial shows us how handle that with only a few rows of PHP code!
PHP & File Compression/Archiving techniques
PHP has some very easy, simple yet powerful, extensions for file compression support. zip, gZip, bZip2, LZF libraries are popular extensions with php. Each one is actually a different compression format... all of them have their own algorithms to...
(show more)
