Php.ini

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 20:39, 23 May 2007 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To see your current php configuration and settings you may wish to create an info.php file. Simply touch info.php in a web directory and add the following line of code: <?php phpinfo() ?> Once you view this new page in your web browser, it will populate the page with all the PHP settings and values.

You can use the info.php file to determine the path to php.ini

Common Paths for php.ini:   
                           /usr/local/lib/php.ini
                           /etc/httpd/php.ini

Where you find it depends on the distribution and how php was installed.

Security:

Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of.

register_globals = Off