php.ini for an entire site

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • canstocker
    Junior Member
    • Mar 2004
    • 26

    #1

    php.ini for an entire site

    Hello everyone,

    Is there a way to create a php.ini file that will work for an entire Website?

    Currently when I create a php.ini and overwrite variables, it only works with .php files in the same folder (not subfolders).

    Thanks, Dan.
  • AndrewT
    Administrator
    • Mar 2004
    • 3656

    #2
    For PHP4, no.

    For PHP5, it will always use the php.ini file that you have directly in the public_html directory.

    Comment

    • ePlanetDesign
      Junior Member
      • Aug 2006
      • 7

      #3
      Originally posted by AndrewT
      For PHP4, no.

      For PHP5, it will always use the php.ini file that you have directly in the public_html directory.
      For PHP5, can you add other php.ini files to different directories?

      Comment

      • AndrewT
        Administrator
        • Mar 2004
        • 3656

        #4
        Yes, now it will use the php.ini file that is in the directory of the particular script.

        Comment

        Working...