Welcome Guest, Not a member yet? Register   Sign In
Change limitation upload file size
#1

Hello, I have a question.

Where should I put my php.ini on CodeIgniter4?
I've tried on the folder: public

Here is my code:

Code:
memory_limit = 32M
upload_max_filesize = 24M
post_max_size = 32M
I also tried this on my .htaccess (in public).

But none of them work
Reply
#2

There is a php.ini in the php folder that's where those are found.

The sizes should all match, outside of menory_limit.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(This post was last modified: 10-01-2020, 06:00 PM by John_Betong.)

Some PHP settings can be dynamically changed using ini_set("..., "...");

https://www.php.net/manual/en/ini.list.php

Settings can be viewed using ini_get(...);

Beware when updating the system that php.ini vales are reset to their defaults.

From the command line to find where the PHP.ini is located and PHP version:

php --ini

php -v

And phpinfo.php for more information.
Reply
#4

Hello, I had to modify my PHP config (on my VPS) to unblock the limit. Because via htaccess, or php.ini, or even ini_set(), it was never working.
Reply
#5

Try the following search:

https://www.google.com/search?q=why+cann...e&ie=UTF-8
Reply




Theme © iAndrew 2016 - Forum software by © MyBB