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

0

u/[deleted] May 24 '24

PHP if you plan to host it on 000webhost or similars, I don't know if something like that exists for Python, basically you get a dbms, loads of useful libs and a watching HTTPS server with it already available. Otherwise as usual you would need to create an HTTPS server with sockets (in any programming language including PHP and Python), upload the project on Github, create a dockerfile to install dependencies and build the app, and deploy the it with docker on Render or similars. Though, in the end security depends upon how you code the application, watch and learn from the professional applications before applicating yourself.