Edit report at http://bugs.php.net/bug.php?id=52034&edit=1

 ID:               52034
 Comment by:       hettbox at gmail dot com
 Reported by:      hettbox at gmail dot com
 Summary:          PHP programmer
 Status:           Feedback
 Type:             Bug
 Package:          Unknown/Other Function
 Operating System: Windows 2008 x86
 PHP Version:      5.3.2

 New Comment:

Try!



<?php

    sleep(31);

    echo 'is ok!';

?>



Result: Fatal error: Maximum execution time of 30 seconds exceeded in
D:\wwwroot\host\tmp\check.php on line 4


Previous Comments:
------------------------------------------------------------------------
[2010-06-10 11:41:46] hettbox at gmail dot com

If configure server on max_execution_time more 30 seconds 

(for example 3600), then !!!after 30 secons!!! 

server generated error "Fatal error: Maximum 

execution time of !!!3600 seconds!!! exceeded"



Server generating error on max_execution_time!



Плохо с английским. Попробую по русски.


Во время выполнения скрипта не должно
входить время на загрузку файла, на
сколько мне известно. В предыдущих
версиях PHP так и было, но в версии PHP 5.3.2
по каким-то непонятным причинам это
стало учитываться.

------------------------------------------------------------------------
[2010-06-10 11:41:36] hettbox at gmail dot com

If configure server on max_execution_time more 30 seconds 

(for example 3600), then !!!after 30 secons!!! 

server generated error "Fatal error: Maximum 

execution time of !!!3600 seconds!!! exceeded"



Server generating error on max_execution_time!



Плохо с английским. Попробую по русски.


Во время выполнения скрипта не должно
входить время на загрузку файла, на
сколько мне известно. В предыдущих
версиях PHP так и было, но в версии PHP 5.3.2
по каким-то непонятным причинам это
стало учитываться.

------------------------------------------------------------------------
[2010-06-10 11:15:54] ka...@php.net

Have you tried to increase the max_input_time php.ini setting?

------------------------------------------------------------------------
[2010-06-09 19:22:07] hettbox at gmail dot com

On the PHP 5.3.1 its work!

------------------------------------------------------------------------
[2010-06-09 19:17:27] hettbox at gmail dot com

Description:
------------
If time for uploading file more than 30 seconds, then PHP reports an
error: "Fatal error: Maximum execution time of 30 seconds exceeded"



If configure server on max_execution_time more 30 seconds (for example
3600), then after 30 secons server generated error "Fatal error: Maximum
execution time of 3600 seconds exceeded"



Sorry, im russian...

Test script:
---------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>



<html xmlns="http://www.w3.org/1999/xhtml";>



<head>

  <title>Uploading</title>

</head>



<body>

<form name="frm" enctype="multipart/form-data" method="post"
action="upload.php">

<input type="file" name="uploaded_file" />

<input type="submit" value="Загрузить" />

</form>



<?php

    if (isset($_FILES['uploaded_file']))

        {

      if ($_FILES['uploaded_file']['error'] == 0)

      {

            $path = pathinfo(__FILE__);

            $path = $path['dirname'];

            $file = $path . '\\' . $_FILES['uploaded_file']['name'];



            if (move_uploaded_file($_FILES['uploaded_file']['tmp_name'],
$file))

            {

               $path = pathinfo($file);

               echo 'Uploaded complete! <br />

                     File name: ' . $path['basename'];

            }

      }

        }

?>



</body>



</html>



Expected result:
----------------
File must be loaded on the server. (Im russian, sorry =))

Actual result:
--------------
File not loaded on the server.


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52034&edit=1

Reply via email to