logo

Black Friday
Sale

  •  99.9% Uptime
  •  Free SSL Certificate
  •  24/7 Live Support
  •  30-Days Money-Back Guarantee
Get Started

Up To

90

%

OFF

05
DAYS
06
HOURS
36
MINUTES
45
SECONDS
Black Friday Sale: Best Web Hosting
From ₹45.00 /Month!
See All Deals
×

Hostinger's Knowledge Base

Find articles and information about features, various troubleshooting guides,
and other technical information related to the Hostinger's services

How to enable register_globals?

Modified on:
php register_globals register_globals

PHP register_globals is set to OFF by default on our servers for security reasons. All modern scripts do not use register_globals anymore because of the security risks and we also highly recommend not to use it on your website. It's also only available on older PHP versions (5.4 and up no longer support register_globals at all)

However, it is possible to enable register_globals by using your .htaccess and php_flag. All you need to do is add this line to your .htacces file:

php_flag register_globals on