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.
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.
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.
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.
Thanks for the quick response guys.. What helps or convinience you will get by doing this? Thanks again guys
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
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.