How to upload a big size file in php?

Status
Not open for further replies.

debiprasad_sahoo

Web Junky 2.0
The max file size set in php.ini file is 2 mb.

I want to write code such that it will allow to upload a big sized file with out changing the setting in php.ini file.
 

din

Tribal Boy
2 options

1. You can make a php.ini locally (most sites support it), you can upload it to your sites root folder. This is not same as editing the server's php.ini, for which you will not have access mostly - unless it is a dedicated server.

2. Editing .htaccess for the same (some sites does not allow php.ini but .htaccess)

@debiprasad_sahoo

Did that work ?
 
Last edited:
OP
debiprasad_sahoo

debiprasad_sahoo

Web Junky 2.0
2 options

1. You can make a php.ini locally (most sites support it), you can upload it to your sites root folder. This is not same as editing the server's php.ini, for which you will not have access mostly - unless it is a dedicated server.

2. Editing .htaccess for the same (some sites does not allow php.ini but .htaccess)

@debiprasad_sahoo

Did that work ?
It will work, no problem with this.
But I need a method where I can upload files without any limit and not doing any php.ini or .htaccess file modification.
I can use php or perl.
 
Status
Not open for further replies.
Top Bottom