Test Your Knowledge
Which
printfconversion specifier would you use to display a floating-point number?What
printfstatement could be used to take the input string “Happy Birthday” and output the string “**Happy”?To send the output from
printfto a variable instead of to a browser, what alternative function would you use?How would you create a Unix timestamp for 7:11 AM on May 2, 2016?
Which file access mode would you use with
fopento open a file in write and read mode, with the file truncated and the file pointer at the start?What is the PHP command for deleting the file file.txt?
Which PHP function is used to read in an entire file in one go, even from across the Web?
Which PHP system variable holds the details on uploaded files?
Which PHP function enables the running of system commands?
What is wrong with the following XHTML 1.0 tag:
<input type=file name=file size=10>?
See Chapter 7 Answers in Appendix A for the answers to these questions.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access