The official documentation regarding the eval() function as, says:
Among other things, this can be useful for storing code in the text field of the database for subsequent execution.
I am seriously confused by this. Is the PHP documentation suggest storing PHP strings in databases? What kind? Isn't that something awkward?
What if I know that the database has a string that runs like PHP? Isn't that very dangerous? I just need an Sql injection to do what I want on this site , what I would like . I can delete the entire database, I can get everything from the script, I can do everything.
How can this be so helpful?
Could you give some examples of how this eval() can be useful? Also, I probably missed something, why I saw some codes like:
eval("if (is_int($int)) { return false }");
instead
if (is_int($int)) { return false }
But, as I said, I probably missed something: what?
eval php
Shoe
source share