Home > Archive > PHP Language > May 2004 > max_input_time problems, please help!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
max_input_time problems, please help!
|
|
| Old Lady 2004-05-22, 8:30 am |
| Hi,
I need to increase the max_input_time on my Linux system running PHP
4.2.2 and Apache, but I can't see the actual value using phpinfo().
I've tried to put
max_input_time = 600
within the php.ini file, but the directive max_input_time doesn't
show up, and my POST uploads of large files fail.
Please, may someone help me?
If should I need to upgrade PHP to 4.3.x, how to do this on a Mandrake
distribution?
Thank You and sorry for my English.
Old Lady
| |
| Janwillem Borleffs 2004-05-22, 8:30 am |
| Old Lady wrote:
> Hi,
> I need to increase the max_input_time on my Linux system running PHP
> 4.2.2 and Apache, but I can't see the actual value using phpinfo().
> I've tried to put
>
> max_input_time = 600
>
> within the php.ini file, but the directive max_input_time doesn't
> show up, and my POST uploads of large files fail.
>
You need the max_execution_time directive...
JW
| |
| Old Lady 2004-05-22, 8:30 am |
| >> max_input_time = 600
>You need the max_execution_time directive...
I have the max_execution_time directive set to 600, but this don't
affect the max_input_time.
If I understood correctly from the PHP docs, the max_execution_time is
the maximum time a script may run before been killed, and don't
include the "streaming time" of the POST; instead, the max_input_time
refers directly to the POST time.
Isn't this correct?
And anyway, how can I set the max_input_time, since putting simple it
in php.ini doesn't work?
Thank you
| |
| Janwillem Borleffs 2004-05-22, 8:30 am |
| Old Lady wrote:
> If I understood correctly from the PHP docs, the max_execution_time is
> the maximum time a script may run before been killed, and don't
> include the "streaming time" of the POST; instead, the max_input_time
> refers directly to the POST time.
> Isn't this correct?
Yes it is.
> And anyway, how can I set the max_input_time, since putting simple it
> in php.ini doesn't work?
>
You need to restart apache to have changes to the ini file take effect, did
you?
JW
| |
| Old Lady 2004-05-22, 8:30 am |
| >You need to restart apache to have changes to the ini file take effect, did
>you?
Yes, I reboot all the system just to be sure, but the max_input_time
isn't visible on the phpinfo() page, and the time is surely well under
the 600 seconds!
Please help!
| |
| Janwillem Borleffs 2004-05-22, 9:30 am |
| Old Lady wrote:
> Yes, I reboot all the system just to be sure, but the max_input_time
> isn't visible on the phpinfo() page, and the time is surely well under
> the 600 seconds!
>
What is the value behind "Configuration File (php.ini) Path" ? When it
mentions only a path, it means that php isn't reading the ini file you have
been editing adn that it uses the default values.
Move the ini file to the indicated path to fix this.
JW
| |
| Old Lady 2004-05-22, 9:30 am |
| >What is the value behind "Configuration File (php.ini) Path" ? When it
>mentions only a path, it means that php isn't reading the ini file you have
>been editing adn that it uses the default values.
/etc/php.ini
and the php.ini is exactly here, but phpinfo() didn't show the
max_input_time directive. I means that max_input_time doesn't show up
at all even with a default! Seems like a ghost. I'm not sure if in the
4.2.2 is a normal beaviour.
| |
| Janwillem Borleffs 2004-05-22, 9:30 am |
| Old Lady wrote:
> and the php.ini is exactly here, but phpinfo() didn't show the
> max_input_time directive. I means that max_input_time doesn't show up
> at all even with a default! Seems like a ghost. I'm not sure if in the
> 4.2.2 is a normal beaviour.
Weird indeed, sounds like a bug. Upgrading to the latest version of php
looks like the way to solve the problem at the long run.
When you don't feel up to this, you can also try to put the following in the
apache.conf or an .htaccess file in your working dir:
<IfModule mod_php4.c>
php_value max_input_time 600
</IfModule>
This will only work when php is installed as a module.
JW
| |
| Old Lady 2004-05-22, 10:30 am |
| >When you don't feel up to this, you can also try to put the following in the
>apache.conf or an .htaccess file in your working dir:
>
><IfModule mod_php4.c>
> php_value max_input_time 600
></IfModule>
>
>This will only work when php is installed as a module.
Well,
I just tried it and... it works!! =8D
I still can't see the max_input_time on the phpinfo() page, but at
least I don't have a timeout error now!
I suppose I'll have to upgrade to be sure that all it's okay, but
probably I'll wait for the PHP5 version.
Thank You VERY much for your help!
Old Lady
|
|
|
|
|