A bit confuse, Needs help from the gurus.

Discussion in 'HTML & Website Design' started by Creative_illusion, Feb 9, 2007.

  1. #1
    Hi there DP family.

    I'm just wondering why the extension file of this website CLICK HERE PLEASE
    has an extension name of .php but when you look at the source code it's just a simple html code. Is this a real php or just extended by .php but it is just html file.. I'm just confuse guys and I'm sorry for my ignorance.

    Thank you guys in advance.
     
    Creative_illusion, Feb 9, 2007 IP
  2. integrity

    integrity Well-Known Member

    Messages:
    1,999
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    180
    #2
    It is PHP file. The code is just written in HTML. I am not sure why this does this either. I know this is like a lot of the files on my sites.
     
    integrity, Feb 9, 2007 IP
  3. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, it's real. It always does that. If you want to view the PHP code involved with it, you'd need the actual PHP file.
     
    rgchris, Feb 9, 2007 IP
  4. scoxy

    scoxy Peon

    Messages:
    332
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The PHP code is interpreted by the server, and it sends you the html result. Although it has a PHP file extension, you can't see the source code without access to the PHP file.
     
    scoxy, Feb 9, 2007 IP
  5. Creative_illusion

    Creative_illusion Well-Known Member

    Messages:
    2,701
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    175
    Digital Goods:
    2
    #5
    Thanks for the quick response guys.. What helps or convinience you will get by doing this?

    Thanks again guys
     
    Creative_illusion, Feb 9, 2007 IP
  6. scoxy

    scoxy Peon

    Messages:
    332
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    By creating a PHP script? Well, I guess being dynamic is the best way to describe it. You have access to alot of powerful functions.. in fact, if you aren't sure, just have a look here: http://uk.php.net/manual/en/faq.general.php
     
    scoxy, Feb 9, 2007 IP
  7. Creative_illusion

    Creative_illusion Well-Known Member

    Messages:
    2,701
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    175
    Digital Goods:
    2
    #7
    Can it makes you work more easy to do some modification? instead of plain .html file?
     
    Creative_illusion, Feb 9, 2007 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #8
    That's one of the great things about PHP, actually. You know how you have entire sections of your Web page that are repeated on each page in the site? Like the header, menu, and footer? You can create separate files for those sections, and then have PHP glue them together behind the scenes, then send them to the browser with the rest of the HTML code as a single page.
     
    Dan Schulz, Feb 9, 2007 IP