Forum Moderators: coopster
Warning: upload_max_filesize of 2097152 bytes exceeded - file [file=picture.jpg] not saved in Unknown on line 0
This is the uploader:
<form name="frmUpload" action="handler.php" method="POST" enctype="multipart/form-data">
<input type="file" id="file" class="file" name="file" />
<input type="submit" />
</form>
How can I HIDE the warning message?
I have this setting:
error_reporting(E_ALL ^ (E_NOTICE ¦ E_WARNING));
<?
error_reporting(0);
echo '<pre>';
print_r($_FILES);
echo '</pre>';
?>
<html>
<head>
</head>
<body>
<form name="frmUpload" action="test.php" method="POST" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
<input type="file" id="file" class="file" name="file" />
<input type="submit" />
</form>
</body>
</html>
error_reporting = E_ALL ^ (E_NOTICE ¦ E_WARNING)
That on my personal server. But i dont have access to the php.ini where i will host the script. Shouldnt this overwrite the php.ini settings?
<?php
error_reporting(E_ALL ^ (E_NOTICE ¦ E_WARNING));
?>