Ok, I am really just wanting to knowexactly why PHP gives a warning on somethign liek this...
$bah='\' ';
(those are all single quotes)
I could just disable the warning, but that just doesn't seem right...
edit:
ok...now know how to probably fix it, but it doesn't really matter....never allow people to inject code...even if it is into quoteation marks...
unexpected character in input!?(PHP)
It is indeed true, in some version/builds at least. also i have experience "echo" not being able to display escape charecters at all, but having no problems with "print".SpooK wrote:Not true, at least in PHP... and doubly for Regular Expressions.TomB wrote:Escape characters do not work in single quotes, you must use double quotes for escaped characters.
This was supposed to be a cool signature...
You are probably rightZacariaz wrote:It is indeed true, in some version/builds at least. also i have experience "echo" not being able to display escape charecters at all, but having no problems with "print".SpooK wrote:Not true, at least in PHP... and doubly for Regular Expressions.TomB wrote:Escape characters do not work in single quotes, you must use double quotes for escaped characters.
I remembered that whenever I install PHP, I ensure that Magic Quotes are disabled in the PHP initialization file. Something I usually and happily forget there-on after
Look in to this (or simply disable at script runtime) if any of you are having awkward escape character issues