News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Working with Files in PHP
April 24, 2012 @ 10:05:41

On PHPMaster.com today there's a new tutorial that shows you some examples of working with files and the local file system in your PHP applications.

You may well be familiar with databases such as MySQL and Access which are an ever-increasingly common means of storing data. But data is also stored in files, like Word documents, event logs, spreadsheets, image files, and so on. Databases generally require a special query language to retrieve information, whereas files are 'flat' and usually appear as a stream of text. [...] PHP provides a range of functions which allow you to work with files, and in this article I'll demonstrate some of them for you.

Examples in the article include the use of several of the PHP file functions including: filesize, filectime, is_readable, file_put_contents and fopen. There's also an example of using the CSV file functions for working with a comma-separated file (both in reading and writing).

0 comments voice your opinion now!
file filesystem tutorial example


blog comments powered by Disqus

Similar Posts

DevShed: Introducing the Chain of Responsibility Between PHP Objects

Christopher Bledsoe's Blog: PHP Dependency Injection (Inversion of Control)

Abhinav Singh's Blog: How to use locks in PHP cron jobs to avoid cron overlaps

ProDevTips.com: Ajax, ZF and Smarty feed reader (Part 2)

NetTuts.com: Parallel Testing for PHPUnit with ParaTest


Community Events





Don't see your event here?
Let us know!


series interview symfony version community library laravel voicesoftheelephpant composer release security list opinion framework conference language podcast artisanfiles tool introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework