What are the security measures we have to take for our site
not to hack by others.
Answer Posted / harish singh
Use addslashes and stripslashes function to insert value in
the database. If possible always use abstraction layer for
database interaction to avoid sql injection.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is difference between python and php?
What are the php functions?
How to read the entire file into a single string?
What is preg_match?
What is the best way to change the key without changing the value of a php array element?
What are getters and setters and why are they important?
How do I stop a php script?
What is substr() in php? And how it is used?
Tell me how can we determine whether a variable is set?
What are the functions to be used to get the image's properties (size, width and height)?
Why should I store logs in a database rather than a file?
Inside a php function, what param needs to be set in order to access a global variable?
What is api laravel?
In php how can you jump in to and out of "php mode"?
How to set cookies in PHP?