0% found this document useful (0 votes)
37 views2 pages

Answers: 4. What Are Cron Jobs? Explain in Details

The document provides answers to questions about hiding the fact that a web page is written in PHP using .htaccess rewrite rules, the differences between PHP include functions like require_once(), require(), and include(), what curl is and how it allows PHP to connect to different server types and protocols, what cron jobs are and how they enable executing commands automatically at specified times, and how to store images in a MySQL database by saving the image location as a string rather than the file itself. Additional questions covered how to find the number of parameters passed to a function using func_num_args() and whether the author knows how to install SSL certificates or is familiar with the content management

Uploaded by

Mark Daher
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Answers: 4. What Are Cron Jobs? Explain in Details

The document provides answers to questions about hiding the fact that a web page is written in PHP using .htaccess rewrite rules, the differences between PHP include functions like require_once(), require(), and include(), what curl is and how it allows PHP to connect to different server types and protocols, what cron jobs are and how they enable executing commands automatically at specified times, and how to store images in a MySQL database by saving the image location as a string rather than the file itself. Additional questions covered how to find the number of parameters passed to a function using func_num_args() and whether the author knows how to install SSL certificates or is familiar with the content management

Uploaded by

Mark Daher
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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.

You might also like