View Single Post
  #7 (permalink)  
Old 01-02-2008, 15:44
flesso's Avatar
flesso flesso is offline
Premium Member
 
Join Date: Mar 2007
Location: 127.0.0.1
Posts: 1,208
Default

This can be done with the use of .htaccess and a custom php.ini file.

First, create or modify the .htaccess file in the root of your site, and paste in the following line:

Quote:
SetEnv PHPRC /path/to/site/my_custom_php.ini
Once thats done, you can then go on to create your custom php.ini file. To achieve what you want to, you will need to paste the following into it:

Quote:
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
Thats all that done. To check that you are using the new custom php.ini file, create a PHP page containing the following text:

PHP Code:

<?php phpinfo(); ?>
Your custom php.ini file will affect your site only, and not the sites of other customers. It can also be done per directory, if needed.
__________________
Regards,
Josh Hold

eUKhost Blog: Over 1000 Computer Related Articles to Sink Your Teeth Into!

Super Moderator

I'm only a forum gremlin (moderator), and do not work for eUKhost in any way. Opinions expressed by me are mine only, and do not reflect those of either eUKhost or any company that may be listed above.
Reply With Quote