Bug #52034 [Opn->Fbk]: PHP programmer

From: Date: Thu, 10 Jun 2010 09:15:55 +0000
Subject: Bug #52034 [Opn->Fbk]: PHP programmer
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151278@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52034&edit=1

 ID:               52034
 Updated by:       kalle@php.net
 Reported by:      hettbox at gmail dot com
 Summary:          PHP programmer
-Status:           Open
+Status:           Feedback
 Type:             Bug
 Package:          Unknown/Other Function
 Operating System: Windows 2008 x86
 PHP Version:      5.3.2

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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


Thread (9 messages)

« previous php.bugs (#151278) next »