EDIT: almost two hours later......it looks like this 'magic quotes' thing, which I wasn't even aware of, was the problem, so I turned it off with:
php_flag magic_quotes_gpc 0
I have a rather odd problem, maybe it's a quirk with the exact version I have installed.
I have a copy of a script that's a collaboration (written partly by me). One copy on the original author's server works fine, but the copy on my host won't retrive cookie information after it's stored. At first I thought it was a change I made that killed the cookies, but I tried copying over the original version of the script verbatim from his server, and it works on his but not on mine, still.
What could possibly be causing this? The cookie gets set, and my browser accepts it, but it can't be retrieved
This code is used to retrive it, but doesn't appear to work on my website....
adding print_r($settings) in there doesn't print anything out...
I have PHP 4.3.9 and here's my phpinfo()
http://doorknobsoft.com/phpinfo.php
I checked through the docs on php.net but as far as I can tell it should work in that version (assuming that's the problem at all). serialize, unserialize, and $_COOKIE are all supported
php_flag magic_quotes_gpc 0
I have a rather odd problem, maybe it's a quirk with the exact version I have installed.
I have a copy of a script that's a collaboration (written partly by me). One copy on the original author's server works fine, but the copy on my host won't retrive cookie information after it's stored. At first I thought it was a change I made that killed the cookies, but I tried copying over the original version of the script verbatim from his server, and it works on his but not on mine, still.
What could possibly be causing this? The cookie gets set, and my browser accepts it, but it can't be retrieved
This code is used to retrive it, but doesn't appear to work on my website....
if(isset($_COOKIE['textify'])) {
$settings = unserialize($_COOKIE['textify']);
$color1 = $settings['c1'];
$color2 = $settings['c2'];
$ynbbcode = $settings['bb'];
$ynsmilies = $settings['sm'];
$ynboldit = $settings['b'];
$ynemphit = $settings['i'];
$ynsizeit = $settings['sz']; //this is new; march 3rd
$textsize = $settings['size']; //also new
$type = $settings['d'];
}
adding print_r($settings) in there doesn't print anything out...
I have PHP 4.3.9 and here's my phpinfo()
http://doorknobsoft.com/phpinfo.php
I checked through the docs on php.net but as far as I can tell it should work in that version (assuming that's the problem at all). serialize, unserialize, and $_COOKIE are all supported
