Php.ini: Difference between revisions

From Free Knowledge Base- The DUCK Project
Jump to navigation Jump to search
New page: 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() ?...
(No difference)

Revision as of 18:39, 23 May 2007

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