11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

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

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

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

• INDEXwww.it-ebooks.info<strong>PHP</strong> (cont.)converting timestamps to userfriendlyvalues, 275current time, 274formatting dates and times, 271–274timestamps, 276–277validating dates, 270documentation for, 11–12downloading, 10–11featurespossibilities, 7power, 6practicality, 5–6price, 7features not supported by, 159–160file-based authentication, 308–309functionsalternatives to backticks, 255determining if variables are set withisset( ), 306–307executing shell commands withbackticks, 254executing system-level commands,253<strong>PHP</strong> authentication methodologies,307retrieving system command'sresults, 253–254returning binary outputs, 254sending HTTP headers with header(), 306hard-coded authentication, 307hidingchanging document extensions, 432expose_php, 431removing all instances of phpinfo( )calls, 431–432history ofoverview, 1<strong>PHP</strong> 4, 2–3<strong>PHP</strong> 5, 3–4<strong>PHP</strong> 5.3, 4–5<strong>PHP</strong> 6, 5initializing logging facility, 180installing on Linux, 12–13installing on Windows, 13–16scriptsoverview, 340PEAR, Mail and Mail_Mime, 341–344sending attachments, 344sending plain-text e-mails, 340testing installation, 16–18tying functions into, 382uploading witherror messages, 324file_uploads directive, 320file-upload functions, 322–324max_file_uploads directive, 321max_input_time directive, 320–321memory_limit directive, 321post_max_size directive, 321upload_max_filesize directive, 321upload_tmp_dir directive, 321–322and Web forms, 287–289and Zend FrameworkCake<strong>PHP</strong> framework, 460overview, 459Solar framework, 460symfony framework, 460–461Zend Framework, 461<strong>PHP</strong> 5.1+calculating difference between dates,286DateTime constructor, 284formatting dates, 284modifying dates and times, 285overview, 283setting date after instantiation, 284–285setting time after instantiation, 285<strong>PHP</strong> 5.3, 4–5<strong>PHP</strong> 6, 5<strong>PHP</strong> Data Objects (PDO). See PDO (<strong>PHP</strong>Data Objects)<strong>PHP</strong> Development Tools (PDT), 38php statement, in Smarty, 403–404<strong>PHP</strong> with <strong>MySQL</strong>affected_rows( ) method, 599executing database transactionsautocommit( ) method, 605commit( ) method, 605rollback( ) method, 605–606mysqli extensionconnection error handling, 591connection opening and closing,590–591enabling on Linux/Unix, 588enabling on Windows, 588error codes, 591–592error messages, 592securing connection information,593–594768

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

Saved successfully!

Ooh no, something went wrong!