I'm afraid that I do not understand the question. Perhaps try rephrasing it?
On my own server, PHP scripts that are run from the web use one PHP configuration file and those that are run from the command line use a different PHP configuration file. /etc/php5/apache/php.ini vs. /etc/php5/cli/php.ini. Perhaps your host has configured different timeout values for different ways to interface with PHP?