11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• CONTENTSwww.it-ebooks.infoDetermining the Length of a String ...................................................................................................... 206Comparing Two Strings ........................................................................................................................ 206Manipulating String Case ..................................................................................................................... 209Converting Strings to and from HTML .................................................................................................. 211Alternatives for Regular Expression Functions..............................................................216Padding and Stripping a String............................................................................................................. 223Counting Characters and Words........................................................................................................... 225Taking Advantage of PEAR: Validate_US .......................................................................227Installing Validate_US........................................................................................................................... 227Using Validate_US ................................................................................................................................ 228Summary .......................................................................................................................228• Chapter 10: Working with the File and Operating System..................................229Learning About Files and Directories.............................................................................230Parsing Directory Paths........................................................................................................................ 230Calculating File, Directory, and Disk Sizes ........................................................................................... 232Determining Access and Modification Times ....................................................................................... 235Working with Files .........................................................................................................236The Concept of a Resource................................................................................................................... 237Recognizing Newline Characters.......................................................................................................... 237Recognizing the End-of-File Character................................................................................................. 237Opening and Closing a File ................................................................................................................... 237Reading from a File .............................................................................................................................. 239Writing a String to a File....................................................................................................................... 246Moving the File Pointer......................................................................................................................... 247Reading Directory Contents.................................................................................................................. 247Executing Shell Commands ...........................................................................................249System-Level Program Execution..................................................................................251Sanitizing the Input............................................................................................................................... 251xii

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

Saved successfully!

Ooh no, something went wrong!