|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-06-09 19:17 UTC] 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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 09:00:01 2025 UTC |
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<?php ini_set('max_execution_time', 5); sleep(6); echo 'is ok!'; ?>