Php Objective Questions with Answers for written test exams 36

Question 36
Flush with the success of the shopping cart on Windows Server 2003, your company

has decided that it would be a good idea to add Solaris to the list of supported

operating systems. Because the shopping cart is already proven to work on

Linux, it should be no trouble at all to get the cart working on Solaris.

Your team goes out and buys a new Sun server. As Solaris doesn’t come with PHP,

you have to compile PHP by hand. At the same time, your network administrator

decides to un-install the Solaris version of sendmail and replace it with the company’s

standard MTA—postfix—instead. He forgets to tell you that he’s done this.

When the time comes to test your shopping cart on Solaris, there’s a problem.

When the shopping cart tries to send the confirmation email, you get this error

message:

Call to undefined function: mail()

What can you do to fix this problem?

A. Put an @ symbol in front of your call to mail() so that PHP does not output

the error message.

B. Put sendmail back on the machine. Postfix doesn’t provide a sendmail wrapper

anyway.

C. Use mb_send_mail() instead.

D. Recompile PHP—after asking your network administrator to leave the

MTA alone until the recompilation of PHP has completed
Answers 36


The correct answer is D.

  







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---