What I would recommend is to start with the php.ini file your web host is currently using. If you have shell access, you can simply copy the file into your own directory. It's usually located in /usr/lib, but if it isn't, then you can verify the location by calling the phpinfo function which will tell you where the configuration file is (amongst other things).
Once you've got a copy of the default php.ini file in your own directory, go ahead and edit it to your liking, turn register globals off and any other changes you would like to make.
Then, create a .htaccess file in your root document directory and add the following line:
SetEnv PHPRC /path/to/directory/containing/YOUR/php.ini
Then view the phpinfo function output again to ensure your configuration file is the one that's loaded.
To view phpinfo output, simply create a php file with the following code, then load the file in your browser.
Code:
<?php echo phpinfo(); ?>
__________________
theWebHostCompany.com
Unlimited Please login or register to view this content. Registration is FREE
2 Years for the price of 1 with promo code: FALL2FOR1
|