240 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
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
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
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.

240 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
squaredmonkey says

thanks man!!!

happy easter!!! :)

951 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
Daan says

You’re welcome :)

Happy Easter to you too!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by