What security issues should I look out for in PHP

后端 未结 18 1971
挽巷
挽巷 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:41

    Use POST method for data passing from one page to another.

    Use trim while getting data like trim($_POST). Also, use strip_tags for variables before you passing into the queries.

    I am suggesting you use any framework link Codeigniter, Laravel, YII, Cake PHP because they maid framework with all securities

    I suggest Codeigniter for small projects and Laravel for big projects.

提交回复
热议问题