Php Objective Questions with Answers for written test exams 27

Question 27
Specifying the LOCK_NB flag to flock() instructs PHP to

A. Return immediately if someone else is holding the lock.

B. Block indefinitely until the lock is available.

C. Block for a number of seconds dictated by the php.ini setting

flock.max_wait or until the lock is available.

D. Immediately take control of the lock from its current holder.
Answers 27


The correct answer is A.The LOCK_NB flag instructs PHP to take a nonblocking

lock, which immediately fails if another process holds the lock.

  







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 ---