13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

xxiv<br />

Contents<br />

18 Implementing Secure Transactions with<br />

<strong>PHP</strong> <strong>and</strong> <strong>MySQL</strong> 409<br />

Providing Secure Transactions 409<br />

The User’s Machine 410<br />

The Internet 411<br />

Your System 412<br />

Using Secure Sockets Layer (SSL) 413<br />

Screening User Input 417<br />

Providing Secure Storage 417<br />

Storing Credit Card Numbers 419<br />

Using Encryption in <strong>PHP</strong> 419<br />

Installing GPG 420<br />

Testing GPG 422<br />

Further Reading 427<br />

Next 428<br />

IV Advanced <strong>PHP</strong> Techniques<br />

19 Interacting with the File System <strong>and</strong> the<br />

Server 431<br />

Uploading Files 431<br />

HTML for File Upload 433<br />

Writing the <strong>PHP</strong> to Deal with the File 434<br />

Avoiding Common Upload Problems 438<br />

Using Directory Functions 439<br />

Reading from Directories 439<br />

Getting Information About the Current<br />

Directory 442<br />

Creating <strong>and</strong> Deleting Directories 443<br />

Interacting with the File System 443<br />

Getting File Information 444<br />

Changing File Properties 446<br />

Creating, Deleting, <strong>and</strong> Moving Files 447<br />

Using Program Execution Functions 447

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!