FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


magic_quotes_gpc on?





Stubru Freak
Why is magic_quotes_gpc on?
It is only annoying as the first thing I want to do with a POST or GET variable isn't always putting it into an sql query.
Shouldn't this be set to off, people will still be able to set it to on with a single line in their .htaccess:
Code:
php_flag magic_quotes_gpc on


I know I can set it to off that way too, but it sure gave me a headache trying to find out what goes wrong.

Also why is register_globals off?
Edit: sorry I mean:
Why is it on?
It's on on server 2
Bondings
Magic quotes are on because otherwise people can easily inject something in sql in a lot of scripts.

Register globals is off because it is a big security risk. That's why it completely won't be used anymore in php 6.
Stubru Freak
Sorry, I meant why is it on? It's on on server 2:
http://frih.net/info.php

I understand that a lot of people forget to escape their queries, but magic_quotes also is going to be removed from PHP6.
Bondings
Stubru Freak wrote:
Sorry, I meant why is it on? It's on on server 2:
http://frih.net/info.php

I understand that a lot of people forget to escape their queries, but magic_quotes also is going to be removed from PHP6.

I'm going to turn it off on the second server too, I just don't know when. The problem is that I'll have a lot of work with people complaining about a lot of scripts not working anymore.

About the magic_quotes, that one will stay there at least for a good while.
Related topics
PHP magic_quotes_gpc question
How to update database?
Site Members' System
mysql_real_escape_string question
phpMailer
PHP question, $_SESSION[] gets changes to by $_POST var
Help with Dreamweaver sessions !!!!!!!!
problem with SQL
Just uploaded. Shouldn't be jibberish.
Please hack my new login screen: 100 Frih$ if you do.
whats wrong with this php script?
Where is the php.ini file?
What happened to Perl?
PHP & MySQL auth system
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.