Nov 22, 2009
Pages: 1, 2

Php.ini Limits Upload_max_filesize - and thereby destroys all my hopes

free web hosting
Open Discussion & Free Web Hosting > Astahost > Hosted Members Support

Php.ini Limits Upload_max_filesize - and thereby destroys all my hopes

Quatrux
you can place them in your site and make the extension .shtml, I didn't write perl for a long time (as a matter of fact I never wrote my perl script just edited them), but I did it like that and used an include function to later include my php file (which the serber executed), the upload script worked and it included from the perl my php script which parsed my site biggrin.gif as I remember I had problems with paths and permissions, maybe this tips might help you, to write the right paths and the scripts in cgi-bin should be executable and stuff wink.gif Yes, I wasn't much of help ? but I don't know what you have there.

Comment/Reply (w/o sign-up)

ruben
Hi,

it works for me now, thank you. But when I tried to upload a 2MB+ file for testing purposes I was stuck in the loading process forever.. ISP problem or is there a low limit for Perl too? I don't know if there is a cgi.ini so I was wondering where to find out this limit. Thanks for your help, Quatrux!

Ruben

Comment/Reply (w/o sign-up)

Quatrux
Well, if you want to do it with php, you could use an .htaccess file, but not all servers lets to do this, try putting a .httaccess file in your public_html directroy with this code.

CODE

# Change Upload Max Filesize
php_value upload_max_filesize 8M


also you can use it to change php/apache configuration, like I always turn this off for better programming.

CODE

php_flag register_globals off
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off


Try and tell me the results if php will let you upload more than 2mb I never tryed it. wink.gif

Comment/Reply (w/o sign-up)

ruben
Oh nice to know, that this is possible, I always thought we couldn't change the php.ini. You should make a nice tutorial some time! This is the thing that I was searching for, thanks a lot.
Are register_globals on on Astahost? I never tried cos I do it the "right" way anyway, but I thought they were off..
You just opened a door for me, thanks!

Comment/Reply (w/o sign-up)

Quatrux
no problems, always happy to help if I can.. yeah, register globals is on on astahost and that is quite unsave.. hmm maybe I could write some tutorial, need to try. wink.gif

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2

See Also,

*SIMILAR VIDEOS*
Searching Video's for php, ini, limits, upload, max, filesize, destroys, hopes
advertisement



Php.ini Limits Upload_max_filesize - and thereby destroys all my hopes

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com