Is it possible to modify php.ini on shared or reseller hosting account?

U can customize these settings by putting a custom php.in in public_html folder or by writing these settings in .htaccess file.

For example, in php5 register_globals is off by default but you can enable it. There are 3 different ways to do it.

1. Turn on the register_globals in php.ini by register_globals = On (it will not be possible if you are on a shared web server)
2. Put extract($_REQUEST) on the top of every .php file.
3. Turn on register_globals using .htaccess make a text file with the name .htaccess and put the following code in it and upload to the root folder.
Code:-php_flag register_globals on If you already have a .htaccess file in your website, then simply put this code in it.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Modifying the htaccess file to use a custom php.ini file throughout your website

This guide provides instructions for modifying .htaccess to use a custom php.ini throughout your...

Customise the php.ini file settings in Code Editor

1. Log in to cPanel, if you haven’t already done so 2. If you haven’t already done so, create a...

Creating a new php.ini file

If you do not have a php.ini file in your public_html folder you can create one by following the...

My e-mail is going to the bulk or spam folder!

You can create an SPF record from cpanel > Email Authentication for your all domains that are...

I lost or forgot my cPanel or WHM password - how can I reset it?

Resetting your cPanel password and finding your cPanel username is easy and can be handled...