Showing posts with label php-cli. Show all posts
Showing posts with label php-cli. Show all posts

Friday, April 6, 2012

set_time_limit is not effecting PHP-CLI


any solution to this ?




#!/usr/bin/php -q
<?php
set_time_limit(2);
sleep(5); // actually, exec() call that takes > 2 seconds
echo "it didn't work again";