Jump to content


This topic is now archived and is closed to further replies.


Php.ini file

Recommended Posts

Hi all,
Not a programmer and I guess if I was, I wouldn't have to ask this question...lol

I need to change a .htaccess file to a php.ini , how do I do this or all i need is for someone to show me how the following code should look in a php.ini file? thanks

This is what the .htaccess file looks like now:

AddType application/x-httpd-php .htm
php_flag magic_quotes_gpc on
php_flag register_globals on


Share this post

Link to post
Share on other sites
To php.ini? You cant have multiple copies of a php.ini file! PHP will only use the master php.ini and not secound php.ini file! But any way.

The first line doesnt even go into a php.ini as its an Apache only command. The php_flag magic_quotes_gpc on and php_flag register_globals on can be changed to the following though:
[code]magic_quotes_gpc = on
register_globals = on[/code]

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.