Hi everyone. I am starting a new project, building a website from scratch that I believe in time might help pay the bills.
I’m new to php and html and pretty much most programming.
I worked as an Oracle db engineer in the 90s, but I’ve forgotten most of that, as I’ve been in a different industry since then.
I’ve read some tutorials and whatnot, and have many questions I’ll be asking about php, html, jscript, ajax, et al. I’m using a VPS for development and have control over the Ubuntu OS.
If it ever pans out and I deploy it, I’ll probably use Amazon AWS. But this all could be a pipe dream, but I have some free time due to injury, and decided to create a website that might be helpful for some people and also generate me an income, no matter how small.
First question, I’ve coded a few web pages just as a test to begin, and it seems I use php and html code within the same file almost always. Should I save all the web files that combine html and php with a .php extension? Is there a reason for separating the html code from the php files?
The little I’ve written uses php to generate the html within the same file, depending on the situation, so it seems logical to save all files as .php and not have very many .html files, if any.
So I’m just wondering how you guys deal with extensions for your web page files. If .html extension files are needed, or if there’s a good reason to have .html files instead of using just .php all the time.
Thanks much.