Re: [PHP] Changing maximum upload file size

2004-05-25 Thread Jason Wong
On Monday 24 May 2004 11:28, Matt Palermo wrote:
> Is there a way to change the maximum file upload size in a PHP script? 
> Kind of like the way you can change the error reporting in a script, but I
> just want to adjust the max file upload size.  Does anyone know if this can
> be done?

No. Because the file upload process is completed before your php script gets 
to run.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Bond reflected that good Americans were fine people and that most of them
seemed to come from Texas.
-- Ian Fleming, "Casino Royale"
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing maximum upload file size

2004-05-23 Thread Rachel Rodriguez

--- Matt Palermo <[EMAIL PROTECTED]> wrote:
> Does this allow you to work with larger files than
> the maximum specified in
> the php.ini or just smaller ones?
> 
> Thanks,
> 
> Matt Palermo
> http://sweetphp.com

The max specified in the php.ini are the largest size
you can upload regardless of what you specify
elsewhere in a script.

http://us3.php.net/manual/en/configuration.directives.php?PHPSESSID=784345a22e754c39b9a843d0dd0b6229#ini.upload-max-filesize

The attribute MAX_FILE_SIZE in your form, regardless
of what you set it to, would not override the settings
in php.ini.  To answer your question then, the
attribute set in your form would only allow for file
uploads of sizes equal to or less than the
upload_max_filesize setting in your php.ini file.

=
~Rachel




__
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing maximum upload file size

2004-05-23 Thread Matt Palermo
Does this allow you to work with larger files than the maximum specified in
the php.ini or just smaller ones?

Thanks,

Matt Palermo
http://sweetphp.com


"Rachel Rodriguez" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> --- Matt Palermo <[EMAIL PROTECTED]> wrote:
> > Is there a way to change the maximum file upload
> > size in a PHP script?  Kind
> > of like the way you can change the error reporting
> > in a script, but I just
> > want to adjust the max file upload size.  Does
> > anyone know if this can be
> > done?
>
> The PHP manual mentions just such a thing using the
> attribute MAX_FILE_SIZE in your form:
>
> http://us4.php.net/features.file-upload
>
> For server-wide limitiations, you'd need to
> additionally modify your php.ini file.
>
>
> =
> ~Rachel
>
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Domains - Claim yours for only $14.70/year
> http://smallbusiness.promotions.yahoo.com/offer

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Changing maximum upload file size

2004-05-23 Thread Rachel Rodriguez

--- Matt Palermo <[EMAIL PROTECTED]> wrote:
> Is there a way to change the maximum file upload
> size in a PHP script?  Kind
> of like the way you can change the error reporting
> in a script, but I just
> want to adjust the max file upload size.  Does
> anyone know if this can be
> done?

The PHP manual mentions just such a thing using the
attribute MAX_FILE_SIZE in your form: 

http://us4.php.net/features.file-upload

For server-wide limitiations, you'd need to
additionally modify your php.ini file.


=
~Rachel




__
Do you Yahoo!?
Yahoo! Domains – Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php