Results 1 to 2 of 2

Thread: What is a php.ini file?

  1. #1
    Join Date
    Nov 2009
    Posts
    76,596

    Default What is a php.ini file?

    The php.ini file is a configuration file that the server looks at to see what PHP options have been made available to the server or what their setting are, if different from the server's default php.ini. While the name may seem advanced to those unfamiliar with it, it is in essence a simple text file with the name php.ini

  2. #2
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    To find location of PHP.ini, run

    on linux

    Code:
    [root@server70 ~]# php -i | grep php.ini
    Configuration File (php.ini) Path => /etc
    Loaded Configuration File => /etc/php.ini
    [root@server70 ~]#
    on windows

    Code:
    C:\Windows\System32>php -i | findstr "php.ini"
    Configuration File (php.ini) Path => C:\Windows
    Loaded Configuration File => C:\Program Files\php\php.ini
    C:\Windows\System32>
    You can also create a php file with following content to see php.ini settings

    Code:
    <?php
    
    phpinfo();
    Save it as phpinfo.php

    Example phpinfo.php

    http://video.bizhat.com/phpinfo.php
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

Bookmarks

Posting Permissions

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