Can anyone tell me how I can access to the php.ini file, when I use shared hosting ,, I tried to create a new php.ini to put on the root of website (because I just read depends on the server, maybe can override)
anyway, It didn’t work for me, how can I add some codes to php.ini while I don’t have access to this file directly and I use share hosting.
Simply put; you can’t. In a shared hosting account, you do not have access to the php.ini file, because you are sharing the same system with millions of other users.
Use .htaccess or a bootstrap file instead.