Re: Help with upload && error message
| From: | Jason Wong | Date: | Tue, 06 Aug 2002 03:30:39 +0000 |
| Subject: | Re: Help with upload && error message | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111327@lists.php.net to get a copy of this message | ||
On Tuesday 06 August 2002 08:14, Rija wrote:
> Hi all,
>
> I'd like to hide this message I've get when I upload big file more than 2
> Mo, because I want to warn the user using my script.
>
> Does anyone know how to do this ?
>
> In my form I include -
> <FORM ACTION="index.php" METHOD="POST"
> ENCTYPE="multipart/form-data">
> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
>
> This is the message I don't want to have:
>
> PHP Warning: Max file size of 2097152 bytes exceeded - file [file] not
> saved in Unknown on line 0 PHP Warning: Cannot send session cache limiter -
> headers already sent in c:\inetpub\wwwroot\ohabolana\index.php on line 2
Look at the error reporting settings in php.ini. Specifically disable
"display_errors".
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
[Crash programs] fail because they are based on the theory that, with nine
women pregnant, you can get a baby a month.
-- Wernher von Braun
*/