Hi there,
I have an interesting problem, where it would be important to detect whether or not a particular string contains executable commands (ie. via eval).
For example, I'd need:
"echo a b c"
to return true
whereas
"a b c"
would not.
I'd guessed that I could compare highlight_string output, but this may introduce unnecessary complexity. Short of building a list of absolutely all PHP commands, I was wondering if anyone here had a quick trick I could use!
Always open to suggestions, and thanks!
Alex