Search code examples
phpajaxcomet

How to set a execution time only for a php file?


a comet project. I want the comet server(a php file) is executed forever and other php file follow the rules that setted by the php.ini file.


Solution

  • You can use the set_time_limit() function.