"[".get_magic_quotes_runtime()."]";
set_magic_quotes_runtime (0);
echo "[".get_magic_quotes_runtime()."]";
outputs:
[1][0]
But the site behaves as though magic quotes is still turned on!
Any tricks to using this command?
=========
an anyone please help me?
==========
Murray Shields Email: [EMAIL PROTECTED]
MU Systems Pty Ltd Phone: +61 7 3351 6677
Global Catalogs Pty Ltd Phone: +61 7 3351 4777
--
PHP General Mailing
Yes.
> Did you try escaping it with the \?
>
>
> At 04:51 PM 3/6/01 +1000, Murray Shields wrote:
> >For data validation, I am using the following regex:
> >
> >$Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$",
$String,
when I add the closinjg bracket ], the regex stops working. There are no
errors, but it accepts any and all characters as valid.
How can I add these additional characters to the regex and avoid this
problem?
Thanks.
=========
> Or you could regex it with something like this:
>
> ereg("^([^a-zA-Z0-9]*)(.*)$", $inStr, $resultArr);
Thanks to all who responded! The above is working as described, and is now
implemented in my code thanks!
==
ed invalid characters. Please check and try again." However,
I would rather be able to tell them WHICH characters they entered represent
a problem.
How can I get a the list of characters tht causes one of these regex's to
fail?
==
6 matches
Mail list logo