Answers
1. How can we hide the fact that a web page is written in PHP?
RewriteRule in the .htaccess file / mod_rewrite
2. What is the difference between require_once(), require() and include()?
Difference between require() and require_once(): require() includes and evaluates a specific
file, while require_once() does that only if it has not been included before (on the same page).
So, require_once() is recommended to use when you want to include a file where you have a lot
of functions for example. This way you make sure you don't include the file more times and you
will not get the "function re-declared" error.
Difference between require() and include() is that require() produces a FATAL ERROR if the file
you want to include is not found, while include() only produces a WARNING.
There is also include_once() which is the same as include(), but the difference between them is
the same as the difference between require() and require_once().
3. What is curl? What is the functionality of curl?
PHP supports libcurl a library created by Daniel Stenberg that allows you to connect and
communicate to many different types of servers with many different types of protocols. libcurl
currently supports the http https ftp gopher telnet dict file and ldap protocols. libcurl also
supports HTTPS certificates HTTP POST HTTP PUT FTP uploading (this can also be done with
PHP's ftp extension) HTTP form based upload proxies cookies and user+password
authentication.
4. What are cron jobs? Explain in details.
CRON is the name of program that enables UNIX users to execute commands or
scripts (groups of commands) automatically at a specified time/date. It is
normally used for sys admin commands like makewhatis which builds a search
database for the man -k command or for running a backup script but can be used
for anything. A common use for it today is connecting to the internet and
downloading your email.
5. Do you know how to install an SSL certificate on a server?s
Yes or No question
6. Do you know Joomla?
Yes or No question
7. How to store image in MySQL database via PHP?
The best way to store images into MySQL is by storing the image location as a charater string.
8. How do I find out the number of parameters passed into function?
func_num_args() function returns the number of parameters passed in.