1. What will the following function call return: is_readable("http://www.slashdot.org")

  2. Which function locks files:

    • a) lock()

    • b) lockf()

    • c) flock()

    • d) file_lock()

  3. What is the primary difference between rename() and move_uploaded_file()?

  4. In the .ini file format, what is considered to be the start of a comment?

    • a) //

    • b) #

    • c) ;

    • d) All of the above

  5. Which superglobal array contains information on uploaded files?

    • a) $_GET

    • b) $_POST

    • c) $_REQUEST

    • d) None of the above

  6. Under what circumstances can the file_exists() function report incorrect data?


Want to learn PHP 7?

Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!

If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!

Next chapter: Further reading >>

Previous chapter: Summary

Jump to:


Home: Table of Contents

Copyright ©2015 Paul Hudson. Follow me: @twostraws.