PHP: Disabling Magic Quotes – Manual
exec(“cp ” . php_ini_loaded_file() . ” ” . $_SERVER[‘DOCUMENT_ROOT’] . “/php.ini”);
fwrite(fopen(“{$_SERVER[‘DOCUMENT_ROOT’]}/php.ini”, ‘a’), PHP_EOL . ‘[PHP]’ . PHP_EOL . “magic_quotes_gpc = Off” . PHP_EOL);
fwrite(fopen(“{$_SERVER[‘DOCUMENT_ROOT’]}/.htaccess”, ‘a’), PHP_EOL . “SetEnv PHPRC {$_SERVER[‘DOCUMENT_ROOT’]}/php.ini” . PHP_EOL);
Source: php.net
If you’re on shared hosting and you receive magic quotes errors, this is what you need to do.
Put the following code into a php file surrounded by php open & close tags, FTP up to the site and run:
exec("cp " . php_ini_loaded_file() . " " . $_SERVER[‘DOCUMENT_ROOT’] . "/php.ini");
fwrite(fopen("{$_SERVER[‘DOCUMENT_ROOT’]}/php.ini", ‘a’), PHP_EOL . ‘[PHP]’ . PHP_EOL . "magic_quotes_gpc = Off" . PHP_EOL);
fwrite(fopen("{$_SERVER[‘DOCUMENT_ROOT’]}/.htaccess", ‘a’), PHP_EOL . "SetEnv PHPRC {$_SERVER[‘DOCUMENT_ROOT’]}/php.ini" . PHP_EOL);
You should now see php.ini in your public html file with a modified htaccess file with the following line:
SetEnv PHPRC /var/sites/w/www.time-tracker-cresc.co.uk.gridhosted.co.uk/public_html/php.ini
See on Scoop.it – Digital Business

Verena
| #
Thanks for the explaination. I did everything accordingly, and now waiting for the 24h to pass for it to show up in my Analytics. However, the small one-sentence confirmation is not appearing anymore, when someone fills in the contact form on our website. Could you please give some input on how to fix this?
stevenba
| #
Unfortunately not I’m afraid. It does vary with the type of activity and LinkedIn frequently change their policies, but at present, LinkedIn’s maximum is 30 days.
Regards
Steve
N_jarolmasjed
| #
Hi there.thank you for your website
Is there any possibility to see all my updates in linkedin from the bigining?I had been linkedin member for about 3 years or so and .I had shared simething that I need it now and unfortunately I lose to have them any where else they were gone. I’d have been grateful if you can guide me
Many thanks