I have kind of a funny question. I have been working with DW for a long time. i never really gotten into using php though.
Now was just playing around. saving one of my projects instead of html files into php files.. eveything shows up just as html..
does that make a big difference? what i save it as.. is it okay to also save stuff in php?
im confused pls help!!!
PHP is a serverside language, which means, it needs a server to run it’s code ( PHP Code That is)
But when you just use html code in a php file, it’ll be interpreted as html code (php code is wrapped into <?php ..code.. ?> tags, so when you have php code outside these tags, it’ll be interpreted as html, not php)
It doesn’t really matter whether you save it as a .html or .php, but when you start adding php code to an html file, it probably won’t work
I thought about saving files in .php as well, because there’s no real harm when it’s done, but when your buyers want to implement php, they dont have to change the filename.
It may however confuse your buyer, in case they’re only familliar with .html files.