How to enable/disable the magic_quotes using the php.ini file
Activating or deactivating the magic_quotes in the
php.ini file of your
web hosting account is done in a few quick steps:
1. You will need to log into your Control Panel first. You can do that by clicking the Control Panel log-in link located in the top right corner of the page. Next Enter your login details in the Members Area Login form. First is your username and then comes the password. Click the Login button to be sent stratight to your Control Panel.
2. Right after you log into the web hosting Control Panel, click on the
File Manager icon located in the Site Management section. This is where you can control the magic_quotes from.
3. Once in the File Manager of your
Control Panel - you will see a table listing all hosts and folders for each one of them containing the hosts' files. For the purposes of this tutorial, we need to go to the Home directory of your File Manager. To do that, simply click on the /home link located above the table of hosts. There you must click on the System folder where the php.ini file you need is located. This will take you to a list of folders with all 3
PHP versions supported on your server.
3.1. You will need to select the folder of the version you are currently using with your account. You can check your current PHP version in the PHP Settings section of your Control Panel.
For this particular account the version used is
PHP5, so we will select the /php5 folder.
Opening the folder you will see a php.ini and a php.ini_bak files. The file you need is php.ini. The other one - php.ini_bak is a backup file. Click on the Edit icon corresponding to the file.
This will allow you to start modifying the file's settings.
3.2. In the pop-up tooltip select the Open with plain text editor option to open the php.ini file editor. Since the file is too big you could use the Search function of your browser to find the necessary block of text.
3.3. Type the word 'magic' in the Search field. Make sure you do not use the line that starts with ';'. Lines starting with ';' are commented and will not be executed.
To check for the necessary lines - simply keep clicking the Next button of the Search bar to finally select only 'magic_quotes' that have not been commented.
3.4. Once you find a relevant line you will have to change the value next to the statement in question to ON or OFF, depending on what you want to do. In this example the magic_quotes are deactivated and we'll have to activate them by changing OFF to ON.
In case you are not sure how the changes you are about to make will be reflected on the related services - please consult with our Support Team first.
When ready with any changes to the magic_quotes in your php.ini file - click on the Save and Close button.
You have successfully modified the php.ini file. All changes will take effect in the next 10 minutes.
Now you know how to edit the magic_quotes in your php.ini
file.