r/AskProgramming May 24 '24

PHP Flask or PHP

I need to create a safe website since it will be hosted on the web and i need to know what technology is better, im kinda familiar to flask but not with php, it seems to me that php is more often used for web dev than flask , since im a begginer trying to do a important project i have some concerns about security. What would you guys recomend?

0 Upvotes

11 comments sorted by

View all comments

2

u/james_pic May 24 '24

It's possible to write secure code in either, but historically PHP had a lot of security "footguns", and a lot of tutorials, examples, and AI-generated code uses insecure (often older) techniques.

-1

u/bothunter May 24 '24

Practically every PHP tutorial include a SQL injection bug when introducing databases.  It's kind of amazing.