Where is the php.ini file located?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqasahmed996
    New Member
    • Jun 2008
    • 160

    Where is the php.ini file located?

    Please tell me where php.ini exist

    and how changes can be make in php.ini

    can global variable be enable in php.ini?

    thanks
  • altonator
    New Member
    • Jan 2008
    • 15

    #2
    Are you using a PC or a Mac? And which (version of the) operating system?

    Actually, if you make a php script and put this in it:
    Code:
    <?php
    
    phpinfo();
    
    ?>
    Then call that page in your web browser, it should display all the info about your php installation, and somewhere it says where your php.ini file is saved. I think it says 'ini path' or something like that.

    When you find it you might not be able to save changes to it. I usually save a copy on my desktop and edit that. Then delete the original and replace it with the one from the desktop. Seems to get around the issue (on a mac).

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      see http://bytes.com/topic/php/answers/8...ariable-turned

      Comment

      • waqasahmed996
        New Member
        • Jun 2008
        • 160

        #4
        thanks for reply.......... ...........

        Comment

        Working...