PHP ZCE mock test, interview preparation, daily lessons under chalk talk

Wednesday, May 16, 2012

Default execution time?

What is the default execution time of a php script after which it gives fatal error?

Solution: it is 30s.


Next bullet fired--> How can you change it?

Solution: It can be configured via max_execution_time value defined in the php.ini
or
through set_time_limit(sec) function of php.



2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. yeah I was asked this question at the time of interview

    ReplyDelete