Hi,
Shared hosting does not allow direct php.ini file editing. However, you are allowed to add entries to either .htaccess file or create a new php.ini file, depending on your server's API. There are cases where additional entries are needed to be included in .htaccess file, and others has to go on php.ini file. Even with this given option, there are some settings that you can't just change like adding extensions e.g. someextension.so.
Copy codes below, paste it your code editor, save as anyNameYouWant.php, upload this file to your server. Direct your browser to this file..
<?php
phpinfo();
?>
Look for the value of "Server API", and post it here. I am expecting a value of either apache module, apache, CGI, or fast CGI. Based on the API loaded on your server, I can tell you where add your enties.