Creating Files in PHP
| Click on a Topic [ Hide ] |
PHP Files Overview
| Learn PHP and MySQL fast! | ||
|
Learn how you can start building rich interactive database driven sites like a professional developer easily and quickly... >> Order your copy now for just $39.95 << |
|
As a developer, every now and then you will need to work with files, to manipulate them, to read them, to parse them and to do all sorts of other stuff with files. Every language has a set of functions which allows you to easily read, write and parse file. Similarly, PHP has a set file system function which makes working files really easy. In the next set of tutorials, we will attempt to teach you how to use these PHP file function like fopen, fread, fwrite, fgets, etc to make working with files easier, faster and safer.
When to use files?
You can use files to store data. If you need to store user data or sensitive data, database should be used instead of files.
Files should only be used to store temporary data or data which is insensitive in nature. You should never use files to store huge amounts of data. Files can only hold certain amount of data in them.
A usage of file would be to store logs, static data, xml data for parsing and so on.
From HTML to PHP programming...
Learn how to build websites in PHP
| Top | PHP File Create >> |



