images that PHP supports?
A.imagetypes — Return the image types supported by this PHP build
Q.What is the difference of session_unregister() & session_unset()
session_unregister — Unregister a global variable from the current session
session_unset — Free all session variables
Q.List out the predefined classes in PHP?
A. Directory
stdClass
__PHP_Incomplete_Class
exception
php_user_filter
Q. What's the command to stop Apache?
A.kill the specific process that httpd is running under, or killall httpd. If you have apachectl installed, use apachectl stop.
Q. How do you set up a virtual host in Apache?
A.
ServerAdmin admin@phptechhelp.com
DocumentRoot /home/apache/share/htdocs/hostedsites
ServerName www.techinterviews.com
ErrorLog /home/apache/logs/error/hostedsites/error_log
TransferLog /home/apache/logs/access/hostedsites/access_log
Q.What does htpasswd do?
A.It creates a new user in a specified group, and asks to specify a password for that user.
Q.If you specify both deny from all and allow from all, what will be the default action of Apache?
A.In case of ambiguity deny always takes precedence over allow.
Q. How do you change the default web root?
A.The solution is to change the DocumentRoot in httpd.conf file.
No comments:
Post a Comment