Welcome to aegis hosting

Our Support Portal puts you in control of your account with us. Manage your hosting packages, servers and domains. Keep track of support issues, orders and billing.

Support Portal

Use of php_flag or php_value in .htaccess

If you're on a server with SUPHP enabled, some PHP options in .htaccess files, such as php_flag or php_value may not work. You need to move these into the PHP script itself, using the PHP ini_set() function. For example,

  • change php_flag register_globals On in .htaccess to ini_set("register_globals", "On"); in your PHP script.
  • change php_value include_path "dir1:dir2" in .htaccess to ini_set("include_path", "dir1:dir2"); in your PHP script.

If your PHP script still isn't working, please raise a support ticket and we may be able to help.

Also, note that if your script does indeed need flags such as register_globals switched to on, often updating to a newer version of your script would be a good idea. register_globals can indicate a potentially unsecure script. 



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
PHP v4 (Views: 475)
Error 403 - Forbidden (Views: 484)
PHP Tutorials (Views: 120)