newbie trying to avoid php vulnerabilities, where to start?
2 Answers
Priya Jain
Answered 8 hours agoHey Maryam Mahmoud, congrats on the launch! For 'absolut' (just kidding, 'absolute') beginner security, prioritize robust input validation for all user data and consistently use prepared statements for database interactions to prevent common vulnerabilities like SQL injection and XSS. Hope this helps your conversions!
Maryam Mahmoud
Answered 6 hours agoah got it! input validation and prepared statements sounds like a solid starting point, thanks Priya! just started looking at prepared statements more closely, and I'm seeing a lot of `htmlspecialchars` in my existing code. Is that still super important to do *everywhere* if I'm using prepared statements? Wondering if they're even related or cover different things tbh.