Sessions and php.ini to support it.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rincewind
Forum Commoner
Posts: 27
Joined: Thu Nov 21, 2002 11:15 am
Location: Norway

Sessions and php.ini to support it.

Post 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".....
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post 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"
Rincewind
Forum Commoner
Posts: 27
Joined: Thu Nov 21, 2002 11:15 am
Location: Norway

Thanx

Post 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
Post Reply