Page 1 of 1

Sessions and php.ini to support it.

Posted: Sat Dec 14, 2002 10:02 am
by Rincewind
I'm trying to make a page including sessions, and as every newbie I'm using a book to do so...
It says that magic_quotes_gpc should be set to on in php.ini, but I can't find this setting.
I've tried recompiling, apparantly without the right settings, could anyone give me a hint what to do?

Thanx

Rincewind_the_Wizzard

"Luck is my middle name" mumbled Rincewind, "mind you, my first name is Bad".....

Posted: Sat Dec 14, 2002 2:22 pm
by hob_goblin
first run this script to see if you even need to do it:

<?
print 'magic_quotes_gpc = ' . ini_get('magic_quotes_gpc') . "\n";
?>

and if it comes out false,
open up php.ini in wordpad and search for "magic_quotes_gpc"

Thanx

Posted: Tue Dec 17, 2002 12:37 pm
by Rincewind
So if it comes out 1 i don't have to do anything, right?
If so it's ok, but I still can't find the setting in php.ini...

Thanx

Rincewind_the_Wizzard