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: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Windows 2008 x86
PHP Version: 5.3.2
New Comment:
On the PHP 5.3.1 its work!
Previous Comments:
------------------------------------------------------------------------
[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