Jump to content

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

Terry
Link to comment
https://forums.phpfreaks.com/topic/10372-phpini-file/
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]
Link to comment
https://forums.phpfreaks.com/topic/10372-phpini-file/#findComment-38668
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.