Forum Moderators: coopster

Message Too Old, No Replies

editing php.ini on cpanel

         

sircheel

3:36 am on Jun 18, 2009 (gmt 0)

10+ Year Member



Hi, I'm trying to enter to Web Hosting issues to post this but it's private so i thought of posting it here.

I have this php page that makes the user upload all file types to the database. The problem is, when you upload 2Mb+ size file, it won't allow it.

Is there a way to edit the php.ini on cpanel on a shared hosting? Any possible way to edit the php.ini?

:S

dreamcatcher

6:28 am on Jun 18, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can change the directives in your script using ini_set [us2.php.net].

if (ini_get('upload_max_filesize') && ini_get('post_max_size')) {
@ini_set('upload_max_filesize', '30M');
@ini_set('post_max_size', '30M');
}

dc