Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
I think the important things are not so much what technology one uses to built pages, but more of the methods that the individual uses in building the site.
For example: A person does not have to use PHP to prevent repeat content. If I want to centralize the code for my navigation to one file, yes, I could use PHP to do that with Code:
require_once('nameofnavfile.php')
HOWEVER - The exact same concept can be created with server side includes if you use the .shtml extension. The important thing in this case is that the principle of centralizing code is being practiced. The real power of PHP lies in making decisions BEFORE you write the page. See, the PHP writes the HTML code that the browsers display so, if you want to render the page based on variables. I know this veers off the original question a bit, but I'll follow up with another post that will be more on topic.
__________________
Missouri Real Estate - Serving Southwest Missouri Branson Lake Homes on Table Rock and Lake Taneycomo Branson Lake Condos and nightly rental properties |
|
|||
|
Now, the original question had to do with whether it is detrimental to use PHP extensions for pages.
IMO - Again, it is not about the technology, but rather the manner in which you build pages. For example, ask yourself, can I navigate to the page via a link? If it is a static HTML page, you can (I say static, because it is possible to parse HTML as PHP so the extension says HTML but really, it is a PHP page - incidentally, this is why I don't believe one extension is favored over another). One might wonder "how a page could exist without having an internet address?" Well, if the page is dynamic and doesn't get built without parameters being sent to it (like a real estate search form using the post method), then you can't browse to it via a link. Now, how is anyone ever going to link directly to the results of a specific search if there is no address to get directly to the page? See, the search form may be located at Code:
http://www.somesite.com/search.php In this scenario, a pre-existing page (PHP or HTML) that always renders the same results, would make sense if you wanted people to link to the page because it was for a specific price range. I hope I didn't ramble or confuse things, but the basic point is: The structure of the site and how you do things is more important than what technology or language you use to do them.
__________________
Missouri Real Estate - Serving Southwest Missouri Branson Lake Homes on Table Rock and Lake Taneycomo Branson Lake Condos and nightly rental properties |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| html vs. php | Dave Kovaleski | Coding | 29 | 08-12-2007 12:28 AM |
| Coding a HTML Link in PHP | RESteve | Coding | 5 | 05-19-2007 11:50 AM |
| Any benefit to having pages ending in html vs. php? | RESteve | Real Estate and Google | 12 | 04-26-2007 11:50 AM |
| HTML or PHP? | mikelong | Coding | 15 | 05-21-2006 09:03 AM |