Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Results 1 to 3 of 3

Thread: Building a new site with PHP

  1. #1
    espmartin's Avatar
    espmartin is offline Senior Member
    Join Date
    Jun 2007
    Location
    West Coast, USA (California)
    Posts
    625

    Default Building a new site with PHP

    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?


  2. #2
    SkinnerW's Avatar
    SkinnerW is offline Senior Member
    Join Date
    Jun 2007
    Location
    Moscow - New York
    Posts
    992

    Default

    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.
    Advanced CMS software with directory, blog, classifieds and portal features

  3. #3
    espmartin's Avatar
    espmartin is offline Senior Member
    Join Date
    Jun 2007
    Location
    West Coast, USA (California)
    Posts
    625

    Default

    Quote Originally Posted by SkinnerW View Post
    ...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...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. link building tips
    By marketraise int in forum The Exchange
    Replies: 0
    Last Post: 04-17-2007, 11:32 AM
  2. Link Building for Hilltop
    By temi in forum Forum Post Exchange
    Replies: 0
    Last Post: 03-25-2005, 07:27 PM
  3. building a site....
    By crowebird in forum General Webmaster Talk
    Replies: 7
    Last Post: 03-07-2005, 07:15 AM
  4. Forum building tips?
    By temi in forum General Webmaster Talk
    Replies: 5
    Last Post: 10-11-2004, 05:05 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124