FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
if u can't change php.ini and wanna allow users to upload mo

 
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> Client - Server Side Development
Author Message
guitarman
fourth grade


Joined: 04 Nov 2005
Posts: 728

PostPosted: Sun Jul 15, 2007 9:29 pm    Post subject: if u can't change php.ini and wanna allow users to upload mo Reply with quote

If you are just like me wanna enable users to upload more than 10 pictures at a time using activeX component and can't access OR do not know how to setup the php.ini files in the server, you can write a HTAccess code to upload and change the file.

Please note that the ini_set won't be able to change the post_max_size variable and hence we need the htaccess.

Code:
<IfModule mod_php4.c>
php_value upload_max_filesize 50M
php_value post_max_size 50M
</IfModule>

- means 50MB upload limit.

Courtesy of: http://au2.php.net/move_uploaded_file

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> Client - Server Side Development All times are GMT + 8 Hours
Page 1 of 1



by phpBB