Even on shared hostings there are normally ways to change some settings.
Two typical methods would be
-
graphical UI options on CPanel
-
the ability to place a php.ini at the root of your site, and they will pick it up and integrate it with their own settings
Ask your hosting about this.
If nothing works, there are ways to add these settings through PHP code, but it’s not really a good way to do it.