PHP 5 for Dummies Free Open Book

PHP 5 for Dummies

Previous PageNext Page
Chapter 13
PHP and Your Operating System
In This Chapter
Manipulating files
Running programs outside PHP
Transferring files from one machine to another
Sending e-mail and e-mail attachments
P
HP provides all the file-handling features that any full-featured language
offers. Using PHP, you can do anything you need to do with the informa-
tion on your system. You can manage your information in files — you can
create, copy, delete, find, move, and more. You can run any program that’s
on your computer, regardless of whether it’s a PHP program. You can transfer
files between computers. Or you can send information via e-mail. This chapter
gives you the information you need to use PHP to do pretty much anything
you can think of on your computer.
Managing Files
The information you save on your hard disk is organized into files.Rather
than storing files in one big “file drawer,” making them difficult to find, files
are stored in many drawers, called directoriesor folders.The system of files
and directories is called a file system.A file system is organized in a hierarchi-
cal structure. A file system has a top level that is a single directory called
root,such as 
c:\
on Windows or 
/
on Linux. The root directory contains
other directories, and each directory can contain other directories, and so
on. The file system’s structure can go down as many levels as you want.
A directory is a specific type of file that you use to organize other files. A direc-
torycontains a list of files and the information needed for the operating system
to find those files. A directory can contain both files and other directories. 
PHP includes functions that allow you to open files and read what’s in them
or write information into them (as discussed in Chapter 12). Files also can be
checked, copied, deleted, and renamed, among other things. Functions for
Previous PageNext Page


     Main Menu
PHP 5 for Dummies
Table of Contents
Introduction
Part I: Say Hello to the PHP Scripting Language
Part II: Variables and Data
Part III: Basic PHP Programming
Part IV: Common PHP Applications
Destroying Objects - Page 215
Chapter 10: The Basics of Web Applications
Chapter 11: Other Web Applications
Chapter 12: Storing Data with PHP
Chapter 13: PHP and Your Operating System
Managing Files
Using Operating System Commands
Using FTP
Using E-Mail
Chapter 14: PHP Extensions
Part V: The Part of Tens
Part VI: Appendixes
Index
Team DDU


More Books
PHP Hacks
Processing Xml With Java - A Guide To Sax, Dom, Jdom, Jaxp, And Trax
The Koran (Holy Qur'an)
Macromedia Flash 8 Bible
Search Engine Optimization for Dummies
YouTube Traffic
PHP 5 for Dummies
Harry Potter and The Chamber of Secrets
Harry Potter and the Sorcerer's Stone
The Pilgrim's Progress
Wireless Hacks
Flash Hacks. 100 Industrial-Strength Tips & Tools
PayPal Hacks. 100 Industrial-Strength Tips and Tools
Amazon Hacks
Pdf Hacks
The Da Vinci Code
Google Hacks
The Holy Bible
Windows XP For Dummies
Harry Potter and the Half-Blood Prince
Seo Book
Upgrading and Repairing Networks
Macromedia Dreamweaver 8 UNLEASHED
Windows XP Annoyances
Windows XP Hacks
Microsoft Windows XP Power Toolkit
Teach Yourself MS Office In 24Hours
iPod & iTunes Missing Manual
PC Hacks 100 Industrial-Strength Tips and Tools
PC Overclocking, Optimization, and Tuning - 2th Edition
PC Hardware In A Nutshell 3rd Edition
PC Hardware in a Nutshell, 2nd Edition
Upgrading and Repairing PCs
Google for Dummies
MySQL Cookbook
Teach Yourself Macromedia Flash 8 In 24 Hours
PHP CookBook
Sams Teach Yourself JavaScript in 24 Hours
PHP5 Manual
Free Games Paper Airplanes
500 Juegos Gratis 500 Giochi Gratis 500 Jeux Gratuits 500 Jogos Gratis 500 Kostenlose Spiele