PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi everybody.
I am trying to change the "max_execution_time" directive using the ini_set() function, but the change only is only applied in the browser's window where I execute my code. For example if i open a pop up and I use ini_get() it returns the default value.I know that ini_set() changes are only applied while the script with the function is running so after the change I use the sleep() function to keep running the script.
Anyone knows how can I use ini_set() to keep the changes until the end of the session or until I close the browser?.
Is there another way to change the "max_execution_time" or something similar at runtime? I tried to change window's registry but by default the first place where de system looks for the php.ini file is defined in the apache's configuration.
Thanks.
Do you have access to the php.ini? You can change it there if you do. Otherwise, you are going to have to use ini_set() to change it every page load. I think, I am not totally sure.
That is the problem. The files are inside a CD and we recorded 1000, but now there is a database query that expends more than the default time in old computers. So we are trying to write a "patch" to solve it.
No I can´t. I was trying to create a new .php that runs the ini_set() in a popup and after that runs the cd application while the popup waits with sleep() .
im pretty sure your out of luck, ini_set changes the settings but its on a per application setting not server wide, and this is the case with set_time_limit (0); also.
that wouldnt work either, because with a frameset you are still running more then one application, each page is its own entity, its just displayed together