dumb quesstion may be - PHP vs HTML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Saloc
    New Member
    • Jul 2006
    • 23

    dumb quesstion may be - PHP vs HTML?

    Hi guys could you answer me one quesstion please

    why PHP and not HTML it seems to me PHP is the in thing for web design

    as Im newbie around here and only just started in this whole damn world of do it your self ((that and wanting a career in it))

    is it also true games are being written in this PHP

    this may seem stupid to most but can anyone answer this for me :confused:
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi Solac,

    PHP files are just like HTML files, but they can include both HTML and PHP code. The PHP code is parsed (or executed) by the Web server when the page is accessed and the resulting output is written as HTML within the Web page. When a user accesses a PHP page, his Web browser only gets sent the HTML code, since the Web server has processed the PHP code in the background. Most PHP pages are processed so quickly that it does not noticeably slow down the loading of the Web page.

    The .php extension is important, since it tells the Web server that the page may include PHP code. Therefore, it must be run through the server's PHP engine before being sent to a client's Web browser. This allows dynamic content to be generated each time the Web page is loaded, based on the variables included in the PHP code. For example, PHP pages may load objects such as the current date and time, data from form fields submitted by a user, or information from a database. Still, once the page reaches the user's Web browser, everything is formatted as HTML.

    take care my fren.. :)

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      No question is ever dumb, only an answer can be.

      However, since you are a self-declared newbie, I would strongly advise you to take some free online introductory courses from an institute like W3schools at link:

      W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

      Comment

      • Saloc
        New Member
        • Jul 2006
        • 23

        #4
        :) Thanks to both of you for that and I have started the road called COLLEGE THIS WAY arghhh 34 and back to school I have also looked at the tutorials you suggested they are very good indeed thanks :cool:

        Saloc

        to cast a pebble into calm waters does it not cause waves

        Comment

        Working...