Re: Adding slashes when magic quotes is off?

From: Date: Mon, 29 Jul 2002 10:06:01 +0000
Subject: Re: Adding slashes when magic quotes is off?
Groups: php.general 
Request: Send a blank email to php-general+get-110145@lists.php.net to get a copy of this message
>I'm making a website for a friend, and trying to do everything the right >way. I want to add slashes to EGPCS values. I know how to use this, >but one of the comments on the get_magic_quotes_gpc entry in the manual >points out that it wouldn't work with arrays in these values - and they >have a point. Does anyone have code that works with arrays in EGPCS >values? Thanks. Something like this: function array_add_slashes($data){ if (is_array($data)){ while (list($key, $value) = each($data)){ $result[$key] = array_add_slashes($value); } } else{ $result = addslashes($data); } return $result; } -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to record live events (mixed already) to stereo CD-quality. Soundcard Recommendations? Software to handle the recording? Don't need fancy mixer stuff. Zero (0) post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo audio-to-disk.

« previous php.general (#110145) next »