Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys.
I am attempting to get Commentic to function for me. My biggest hurdle is switching off magic quotes, and I am at the point of throwing the towel in over it.
First of all I am hosted by Godaddy, on a Linux server, who have been a treasure to me in the past, but cannot or will not help me with this problem.
I searched for an answer and eventually created and uploaded a php5.ini file into the root folder of my site, which is an alias to the primary domain.
Here is the contents of the file:


magic_quotes_gpc = Off;
magic_quotes_runtime = Off;
magic_quotes_sybase = Off;

Checking by uploading a phpinfo.php file to the primary domain root folder I get:

magic quotes gpc On
magic quotes runtime Off
magic quotes sybase Off

This is born out by the malfunction of my comments page when I attempt to add a video or an image to the comment, I can't.
My problem is that whilst searching for an answer, I came accross the notion that a php(5).ini file was "quite a large file", certainly more than my three lines. Yet the file that accompanied this instruction was dedicated to another application so I decided not to copy it and add my three lines to it. So I am not sure what a php5.ini file should look like, I may have the file written correct, if so why won't it work and disable magic quotes? I also saw that I was supposed to put the file in every directory with php in it, so I did that, nothing.
I have ended the processes, not as there were any, still nothing.

I have tried .htaccess file with:

php_value magic_quotes 0
php_flag magic_quotes off
php_value magic_quotes_gpc 0
php_flag magic_quotes_gpc off


I am staggered that I can't get this resolved, I have searched anywhere and everywhere but nothing has worked.

Help with this would be wonderful.
Posted

Get a copy of the PHP manual (or use the online one here[^]).
Read the section on security/magic quotes, particularly the parts on "why did we use" and "why not to use".
Go back and rethink your original approach. I've never heard of Commentic, but maybe the folk behind that might be able to offer a better solution to the underlying problem (SQL injection).

Peter
 
Share this answer
 
Thanks for that Peter. I must say that I covered all those bases yesterday with no result. Commentics tech guy, had no real idea about it, Godaddy wouldn't help and I cannot personally sort it out.
It would appear that everyone else is having no problem with it. I made the original upload in tact and saw that this issue was expected in the installation notes. So I was assuming it would be a simple fix. I will try a re-install although I can't see it doing anything.
Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900