What security issues should I look out for in PHP

后端 未结 18 1946
挽巷
挽巷 2020-11-29 01:51

I just starting out learning PHP, I\'ve been developing web apps in ASP.Net for a long time. I was wondering if there are any PHP specific security mistakes that I should be

18条回答
  •  时光取名叫无心
    2020-11-29 02:35

    1. Always Close you SQL Connection.
    2. Always Release SQL results.
    3. Always Scrub all variables your putting into a database.
    4. When deleteing or dropping from sql use limit 1 just in case.
    5. When developing make sure you have a lock on things to keep the undesirable out. If its open and you know not to load the page right now because it could break something, doesn't mean other people do.
    6. Never use Admin or Root as your server log in name.

提交回复
热议问题