Good day! I am currently planning to work on a side-project of my own which involves creating a Wikipedia-like web application.
I am thinking of using PHP, JavaScript (AngularJS) and HTML/CSS. I am thinking of writing database connection/writing/fetching functions in PHP and then doing everything else with JS. My question is: is the approach I thought of a good one? Understanding the request, connecting to the database with PHP, executing a query to insert/fetch things from the database, closing the connection, then passing those to JS and do whatever with them. Can I call PHP functions from JS events, and is it a safe thing to do?
Is there anything I could use instead of PHP? Or any specific way of doing this? I do not plan on using any existing framework like phpCake, Smarty or CodeIgniter.
Aucun commentaire:
Enregistrer un commentaire