[PHP] Upload issue - The 2MB barrier...
As the default setting for file upload is set to 2MB, we usually get a problem since we cant always access the php.ini on every server our scripts should be run from. After looking in the php.ini file on one of my webhosting partners I noticed an interesting (in my opinion) thing with the post settings which read : (And to make it clear, I could easilly change the php.ini file, but due to the other clients on this webserver I cant... Im not alone here ) post_max_size = 55M Since the other setting would easilly accept say 5 MB I wonder, would it be possible to upload an image "as a POST"? Or something like this? Maby this is a pointless idea to investigate further ? -- Kim Steinhaug --- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload issue - The 2MB barrier...
Hello Kim, Tuesday, December 2, 2003, 12:34:22 PM, you wrote: KS> As the default setting for file upload is set to 2MB, we usually get KS> a problem since we cant always access the php.ini on every server KS> our scripts should be run from. Can you modify the httpd.conf for your site? If so you can over-ride the upload_max_filesize setting in that without messing up any other user on the server. -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload issue - The 2MB barrier...
Hmm 1. We can rule out the ini_set() 2. We can now rule out the .htaccess Tried the following : .htaccess php_value upload_max_filesize 5M testfile.php print 'upload_max_filesize = ' . ini_get('upload_max_filesize') . "\n"; The testfile succesfully states the new value, but it doesnt work. Obviously, the documentation on php.net already told me so, so the fact that I really tested this is kinda stupid... hehe. That leaves me with the httpd.conf settings which is supposed to work, also according to the PHP documentation. Just need to locate this file first... -- Kim Steinhaug --- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. --- "Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Kim, > > Tuesday, December 2, 2003, 12:34:22 PM, you wrote: > > KS> As the default setting for file upload is set to 2MB, we usually get > KS> a problem since we cant always access the php.ini on every server > KS> our scripts should be run from. > > Can you modify the httpd.conf for your site? If so you can over-ride > the upload_max_filesize setting in that without messing up any other > user on the server. > > -- > Best regards, > Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload issue - The 2MB barrier...
Kim Steinhaug wrote: That leaves me with the httpd.conf settings which is supposed to work, also according to the PHP documentation. Just need to locate this file first... $> locate httpd.conf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload issue - The 2MB barrier...
I found the file, but since im on a Cpanel server I do have to do some checking with the admin so that I dont mess up for other users. I wouldnt want my experimenting resulting in an unstable server for other users, :) It looks like this is the only way to alter the settings. Thanks for replies. -- Kim Steinhaug --- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't. --- "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kim Steinhaug wrote: > > That leaves me with the httpd.conf settings which is supposed > > to work, also according to the PHP documentation. Just need to > > locate this file first... > > > > $> locate httpd.conf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php