234 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • United States
squaredmonkey says

Hi,

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 :D pls help!!!

thx

951 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Netherlands
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Daan says

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.

234 posts
  • Bought between 100 and 499 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • United States
squaredmonkey says

thanks man!!!

happy easter!!! :)

951 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Netherlands
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Daan says

You’re welcome :)

Happy Easter to you too!

by
by
by
by
by
by