php - Max execution time when including other files -


i have php file, a.php, includes b.php, includes c.php.

so a.php looks this:

<?php  include_once('b.php');  // code ?> 

and b.php looks this:

<?php include_once('c.php'); // code  ?> 

when run a.php error:

fatal error: maximum execution time of 60 seconds exceeded in c.php

when error use:

ini_set('max_execution_time', 5000); 

and problem goes away.

i tried put in a.php , c.php still error.

first question is: matter whether put in a.php or c.php? second question: if setting max_execution_time in a.php , c.php not work, do?

btw. can't access php.ini can't set there. note: isn't actual code , filenames, pretty setup. using else's code. b.php , c.php created else , creating a.php.


Comments