I see all websites (THE big ones) make both PHP and HTML in same page .. Do I need to make all my website pages as PHP and embedded HTML inside it ? Can't I make the website all as HTML Pages and PHP pages separate and the required output of PHP page I make a separate HTML for it ? i need an explanation or advice for the best approach . I searched SO for appropriate answer but no luck .thanks in advance .
Web pages can be built in just html. In fact, that's how the web started out: with just simple html pages, things we would call today "brochure-ware". The user requests a page and the server delivers a mixture of text and pictures, and then it's done. There is no interactivity, like individual preferences or searching a database.
PHP came later as an easy way to add some programming logic - choosing this or that - to web pages, then providing easy interface to databases to search for stuff and return the results.
I see all websites (THE big ones) make both PHP and HTML in same page .. Do I need to make all my website pages as PHP and embedded HTML inside it ?
The fundamental problem here is that you're seeing a thing that websites you perceive as being big ones and then you're assuming that's a good thing to do.
PHP is terrible enough on its own; embedding HTML and PHP in the same page will only make things even worse. The correct structure of a Web application is to have a strictly separated client and server.
As a disproof-by-counterexample, a simple example of a big website that does not have PHP and HTML in the same page is Facebook - they developed React which is very opposite this perspective.
Yesm all of these things are correct but in the end when every page is loaded they are all converted to an HTML formatting so basically PHP, Bootstrap, CSS, JS are just basically all additions with makes data entry or forums all possible but the real question is what will this be used for and how can we , you implement an infrastructure for storing all data entry from account ids to arrays and strings , etc
Correct me if I am wrong though