Web Hosting
Results 1 to 3 of 3
  1. #1

    Red face Changing php variables

    Hi all,

    i would like to ask if it is better to change php variables via php.ini files or via .htaccess file and why.
    The requested variables to change are display errors and magic quotes gpc which i want from on to become off.

    Up to now i have been able to change them via many php.ini files in every directory but it does not seem so practical but i am too newbie to have a valid opinion that is why i ask.

    Thank you in advance for your time reading this.

    Regards,
    the_observer.

  2. #2

    Default

    Hello,

    The only difference between the two methods is that .htaccess files support inheritance whereas custom php.ini files do not and in case of the latter you will have to copy the custom php.ini file in every directory in which you want to apply the modifications.
    Best Regards,
    Nikolay A.
    SiteGround Senior Support Team

    Join us on Facebook
    Follow us on Twitter
    Web Hosting Suitable for You!

  3. #3

    Default

    Much obliged for answering Niko.

    Regards,
    the_observer.

Similar Threads

  1. changing aspects of php.ini on shared server
    By Polk011 in forum Hosting Related Questions
    Replies: 1
    Last Post: 04-26-2011, 06:14 AM
  2. Cookies vs. Session Variables
    By coykiesaol in forum Hosting Related Questions
    Replies: 0
    Last Post: 12-27-2010, 09:53 PM
  3. changing forum logo PHP
    By roy in forum Hosting Related Questions
    Replies: 2
    Last Post: 12-31-2007, 01:40 PM
  4. Changing values in php conf?
    By khoacalacan in forum Hosting Related Questions
    Replies: 1
    Last Post: 09-29-2006, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •