Question Bank
3705 approved questions from the community
Which PHP setting controls whether errors are logged to a file?
What is the third parameter of the define() function used for?
What command-line option displays PHP configuration information?
Which command-line option allows you to run a single PHP command without a script file?
Which of the following are valid cookie parameters in PHP? (Select all that apply)
Which of the following are popular HTTP servers that manage incoming PHP requests? (Select all that apply)
Which of the following are valid ways to redirect output when running PHP from the command line? (Select all that apply)
Which PHP function should be used for strict email validation with Unicode support?
What does htmlspecialchars() convert '<' to?
What is the recommended naming convention for PHP constants?
What happens during the Bootstrap stage of a PHP request?
Which function can be used to configure session cookie parameters for security?
What should be done immediately after setting a location header to ensure script execution stops?
What notation was introduced in PHP 7.1 to indicate that a function can return either the specified type or null?
In PHP 7/8, what do anonymous functions automatically capture from the outer scope?
What does CSRF stand for in web security?
Which command-line option allows you to specify a custom configuration file for PHP?
On Windows systems, you typically need to use php-cgi.exe to run PHP scripts from the command line.
What does XSS stand for in web security?
PHP constants should ideally be defined at the beginning of a script to ensure consistent values.