Skip to Main Content
PHP and MySQL™ Phrasebook
book

PHP and MySQL™ Phrasebook

by Christian Wenz
October 2012
Intermediate to advanced content levelIntermediate to advanced
360 pages
4h 57m
English
Addison-Wesley Professional
Content preview from PHP and MySQL™ Phrasebook

7. Using Files on the Server File System

Although databases are very common, using the file system to store data can be a real alternative. Often, it is easier to implement that way. Sometimes, it is faster, and much more important, all hosting providers have file access enabled, whereas database support might only be available at extra cost.

PHP supports working with files through a set of certain functions. Using wrappers, the same technologies can also be used to access remote data via protocols such as Hypertext Transfer Protocol (HTTP) or File Transfer Protocol (FTP), but this is covered in more detail in Chapter 9, “Communicating with Others.”

This chapter covers both standard tasks such as reading and writing files, and advanced tasks ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP 7 Programming Blueprints

PHP 7 Programming Blueprints

Jose Palala, Martin Helmich

Publisher Resources

ISBN: 9780133040340Purchase book