17 replies
Hi,

I'm going to build a clickbank vendor website. Nothing really advanced, I think... mostly static pages but will be running some scripts.

I'm a technical noob, but the way I understand it, it's easier to run those scripts if the pages have the .php extension as opposed to .html

Is there any downside to using that extension?

Sorry it my question is stupid
#html #php
  • Profile picture of the author BayAreaSteve
    Originally Posted by marmalade View Post

    Hi,

    I'm going to build a clickbank vendor website. Nothing really advanced, I think... mostly static pages but will be running some scripts.

    I'm a technical noob, but the way I understand it, it's easier to run those scripts if the pages have the .php extension as opposed to .html

    Is there any downside to using that extension?

    Sorry it my question is stupid
    You should google php and html to find out what those are, they are more
    than just extensions.

    Google is your friend, you can find out tons of info pretty easily.

    Also youtube video site has tutorials on php and html , all free.
    Signature

    Right now... This very second... You have everything you need to be successful. You have everything it takes , and more , to become everything you have ever dreamed ; and more than you can ever imagine.
    You are a success just by coming as far as you have...
    DO NOT give up five minutes before the miracle.

    {{ DiscussionBoard.errors[5525364].message }}
  • Profile picture of the author tmtechno
    html files are directly put out by the server, php files are processed by a parser before spitting out html code. But if you are using php code in files then it will be a good idea to keep the extension php, else you will need to apply htaccess rules to parse html extension which in turn will slow down the output a bit .
    {{ DiscussionBoard.errors[5530743].message }}
  • Profile picture of the author frenchsquared
    I say always use php, that way you can use php at a later time if needed.
    It sucks if you indexed a bunch of html pages and need html.

    Plus, why would anyone ever want to make a header and footer for each page
    when you can make one with php.

    I hate it when someone calls me for help and wants me to change 20 or more html
    pages. Just do it right the first time and use php.
    Signature

    I am a php developer and Wordpress Guru. I was the original coder of Socrates and Metamorphosis. Be on the look out for my NEXT Theme... hopefully you will find it launched as a WSO in the next month or so. Optin for Special Pricing

    Need some help with Wordpress? find me on fiverr

    {{ DiscussionBoard.errors[5533606].message }}
  • Profile picture of the author SourceCodeDirect
    I personally like html over php but is is your call
    {{ DiscussionBoard.errors[5534881].message }}
    • Profile picture of the author Don Art
      first, i also would pretty much always use .php over.html however...

      there is probably a very slight hit to your server resources with php over html (certainly so if you are actually doing anything with php)

      most SEO types favor .htm or .html over .php (my guess is that was more of an issue in the past)
      {{ DiscussionBoard.errors[5535536].message }}
  • Profile picture of the author seoguro
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[5536429].message }}
    • Profile picture of the author indianhub
      I prefer PHP. It will gives me more options to handle my site.
      {{ DiscussionBoard.errors[5537910].message }}
  • Profile picture of the author rainso0
    PHP and HTML interact a lot: PHP can generate HTML, and HTML can pass information to PHP. Before reading these faqs, it's important you learn how to retrieve variables from external sources. The manual page on this topic includes many examples as well. Pay close attention to what register_globals means to you too.
    Signature
    {{ DiscussionBoard.errors[5536682].message }}
  • Profile picture of the author seoserviceneed
    .php is more flexible than html. On the otherhand, HTML used to design websites while PHP is being used after the HTM Language.
    {{ DiscussionBoard.errors[5536706].message }}
  • Profile picture of the author wilianto
    I prefer to use PHP extension on your file, because it is easier to develope someday than HTML extension.
    {{ DiscussionBoard.errors[5538689].message }}
  • Profile picture of the author Jashandeepmax
    HTML with php is too good to run any scripts .Use this it will work very fine.All the best.
    Signature

    I like to Participate in Communities ........

    {{ DiscussionBoard.errors[5543479].message }}
  • Profile picture of the author shantanu
    Anytime PHP coz it is much easy to use and implement on a website where as in HTML the workload is bit heavier than the PHP.
    {{ DiscussionBoard.errors[5547335].message }}
  • Profile picture of the author Ibcontact
    Hey You can't make a dynamic website in HTML. I think you have to read more about HTML and PHP...
    {{ DiscussionBoard.errors[5549294].message }}
    • Profile picture of the author theyouthexpress
      You can use .php extension in any file..I'm also prefer .php
      {{ DiscussionBoard.errors[5561226].message }}
  • Profile picture of the author SASA Techno
    Hi in my opinion both are best for any type of scripting and easy way to developing.
    {{ DiscussionBoard.errors[5561408].message }}
  • Profile picture of the author 99octane
    Ok, obviously we don't have many(if any programmers) answering this question...

    Simple answer:
    If your planning on your pages never changing (i.e... once you create the page it never changes) go with .html and hand make every page.
    OR
    If you want to be able to add and remove pages, and change pages simply, by changing a database, then go with PHP and a .php extension.

    HTML is a static language only useful for layout, any processing of the page, whether for forms, or including headers and footers, requires a scripting language(like a browser parsed language i.e... Javascript or a server processed language like PHP or Perl)

    The Complete Answer: It really depends on how much work you are ready to put in, to get the site off the ground "now", and how much effort you are willing to put into it to maintain it "later"

    For example with all html only pages, you will have to hand edit each and every one, to add a new link, with php driven pages you can add the link to one file that is included in all the others. The php setup would require slightly longer to build, but 1/100th of the time to maintain later.

    Hope that helps...
    {{ DiscussionBoard.errors[5562067].message }}
    • Profile picture of the author guy99
      I would recommend you to go for .php
      {{ DiscussionBoard.errors[5567108].message }}
  • PHP is more preferable.
    {{ DiscussionBoard.errors[5584278].message }}

Trending Topics