want to join us? register, it's easy | help

browse by tag: file handling

sort by

newest, oldest, most popular


category icon

Detailed Guide to fwrite() Operations

in PHP added by BrandonEnr7, on 24/3/2011 advanced tutorials file handling php5

In this tutorial I will be deeply explaining in detail the many modes of the PHP function fwrite(). Yes, fwrite() is used to write data to files, however the way it is written to the file changes with each mode. In each mode, I will explain its purpose, provide an example, and then explain the code within the example.

comment save report
category icon

MySQL(blob-storage) Image Gallery

in PHP added by goodphptutorials, on 14/11/2006 file handling

Example of photo-gallery script, which uses MySQL table (BLOB field) to store images. Trivial password-protection, uploading and deleting images are supported. For Apache-version of PHP there is advanced browser-caching support (using If-Modified-Since header).

comment save report
category icon

How to Create an RSS Feed for Your Site in PHP

in PHP added by Walkere, on 1/3/2008 advanced tutorials feed file handling mysql php5 xml

An RSS feed is a great way to serve up your content to users. However, if you're not using a standard CMS or blogging platform you may not have an RSS feed generated for you automatically. This tutorial will show you how to create an RSS feed in a few simple steps. If you can query your database to get information about your articles, you can complete this tutorial and build a custom feed.

comment save report
category icon

Upload in modal window and pass values with jQuery

in PHP added by finalwebsites, on 7/9/2009 AJAX file handling jquery upload

This PHP / jQuery tutorial explains how-to upload a file PHP from ThickBox and how after successful upload the filename is passed to the parent document. The function is a useful addition for custom content management systems.

comment save report
category icon

Secure File Upload with PHP

in PHP added by Nolte, on 18/1/2007 file handling file upload security tips

PHP makes uploading files easy. You can upload any type of file to your Web server. In spite of security issues that should be addressed before enabling file uploads, the actual mechanisms to allow this are straight forward. In this tutorial we will consider how to upload files to some directory on your Web server. We will also discuss security issues concerned with the file uploading.

comment save report
category icon

Working with Directories

in PHP added by Nolte, on 22/2/2007 directories file handling iterators php php5 recursion

As is necessary for any language, PHP has a complete set of directory support functions. PHP gives you a variety of functions to read and manipulate directories and directory entries. Like other file-related parts of PHP, the functions are similar to the C functions that accomplish the same tasks, with some simplifications. This tutorial describes how PHP handles directories. You will look at how to create, remove, and read them.

comment save report
category icon

Tutorial: Create a zip file from folders on the fly

in PHP added by finalwebsites, on 24/9/2007 classes file handling scripts zip

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!

comment save report
category icon

PHP File Read

in PHP added by mig35, on 30/10/2007 file handling files

Tutorial demonstrates different ways of reading files in PHP.

comment save report
category icon

Find your Files

in PHP added by goodphptutorials, on 22/4/2010 file handling framework oo programming php5 symfony

The best practices for finding files with PHP has evolved a lot in a the last few years. Back in 2004, one of the very first thing I did with PHP was porting the File::Find::Rule Perl module to PHP. File::Find::Rule is a great way to describe the files and directories you want to work with. I used the opendir, readdir, and closedir native PHP functions, and it did the job quite well. The PHP class was named sfFinder, and it can still be found in all symfony versions. Even if the class is bundled with symfony, I know that a few people use it for all kind of stuff, not necessarily related to symfony.

comment save report
category icon

Get Remote Web Page Information Using PHP

in PHP added by goodphptutorials, on 14/9/2006 file handling

Use PHP to get the title, keywords and description of a remote web page.

comment save report
category icon

Create PDF files using PHP

in PHP added by goodphptutorials, on 7/11/2006 file handling

Basic tutorial on how to Create PDF files on the fly using PHP

comment save report
category icon

File Download Security

in PHP added by goodphptutorials, on 29/9/2006 file handling

Want to prevent people from linking to your downloads? This script will force a page to be loaded before the download starts. HTML header statements are used to trigger the download of the file. PHP is used to push the file to the browser.

comment save report
category icon

Using Files on the Server File System

in PHP added by goodphptutorials, on 3/1/2006 archive bzip file file handling filesystem zip

This tutorial covers both standard tasks such as reading and writing files, and advanced tasks such as archiving files in ZIP or BZ2 format. Many of these tasks can be solved in different, equally usable ways, so you truly have the freedom of choice.

comment save report
category icon

FTP Upload via cURL

in PHP added by finalwebsites, on 16/10/2007 curl file handling ftp upload

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.

comment save report
category icon

Uploading Image Files with PHP

in PHP added by bs0d, on 9/12/2007 beginner tutorials database file handling mysql upload files

This article will guide you through step-by-step to learn how to upload and manage files using PHP.

comment save report
category icon

Preview PDF Generation Using Only PHP - Part 2

in PHP added by goodphptutorials, on 12/1/2006 adobe file file format file handling filesystem pdf

This tutorial is intended for the PHP programmer who needs to incorporate PDF generation in a script without using external libraries such as PDFlib (often unavailable due to licensing restrictions or lack of funds).

comment save report
category icon

File Handling Basics

in PHP added by goodphptutorials, on 14/9/2006 file handling

Goes over many functions and aspects about file handling that PHP has.

comment save report
category icon

PDF Generation Using Only PHP - Part 1

in PHP added by goodphptutorials, on 11/12/2005 adobe document file handling pdf pdflib

his tutorial is intended for the PHP programmer who needs to incorporate PDF generation in a script without using external libraries such as PDFlib.

comment save report
category icon

File Creation and Editing with Filesystem Functions

in PHP added by goodphptutorials, on 30/12/2005 file handling files filesystem io read write

This tutorial is intended for PHP programmers that wish to use the Filesystem Functions of PHP to create files on their webserver via PHP. A basic understanding of PHP and file systems in general is assumed.

comment save report
category icon

Traverse Directories the Easy Way with Glob

in PHP added by Wildhoney, on 16/9/2007 file handling security session sessions web

There is a powerful yet somewhat unheard of function in PHP titled glob(). Many beginners and intermediates alike struggle with the traversing of directories. Acquiring the directories contents and returning them in a readable format. If only they know how so very easy this task was!

comment save report
category icon

Creating ZIP and TAR archives on the fly with PHP

in PHP added by goodphptutorials, on 9/6/2006 file handling

In this tutorial you will learn how to create ZIP and TAR archives dynamically using PHP and the PEAR::Archive_Zip and PEAR::Archive_Tar packages.

comment save report