24.14 Answers to Chapter 15This is NOT the latest copy of this book; click here for the latest version.
-
"What are the advantages of fsockopen() over fopen() for use with HTTP connections" The former gives up much more control: not only can we choose a different HTTP port (such as 8000, or 8080), but we can also send different types of request through.
-
"Which function can be used to make a script instruct visitors to redirect to another URL" The answer is "d", header().
-
"Using Apache, what filename is used to specify authorisation is required" The answer is ".htaccess", but be wary - using .htaccess files requires enabling the module mod_access, which is very slow!
|
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.
My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!
|