The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

Building a new site with PHP

espmartin

New Member
affiliate
Hello All,

The more I use PHP, the more I realize I really want to use it more. You see,
before I started using PHP, I would hard-code all elements such as navigation
onto every page I have on a site. I'd make sure that the code was exactly
the same, so when I needed to make a change or addition, I would do a
search-and-replace on that site.

But now with PHP, I just have one navigation php file, and link to it from my
site's markup.

How many of you designers use PHP in this fashion?

 
There were other options to achieve similar tasks, DHTML for example. They work almost the same way as "php include" - you create dynamic template with all common elements and than just attach content pages to that template...

PHP gives you much more flexibility than just simple "include" and I actually slow but sure converting all my html sites to php.
 
...PHP gives you much more flexibility than just simple "include"...
I agree with you SkinnerW. I actually use PHP to serve one of my sites as
XHTML 1.1 (with the correct content type as well):
Code:
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
and other "lesser" browsers get XHTML 1.0 Strict, with it's content type as:
Code:
content="text/html;
Just one semi-advanced PHP thang I do...
 
banners
Back