Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: Advantages and Disadvantages of php templates

  1. #21
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Aren't PHP layouts same as HTML, or anyother type? Please and thank you.

    EDIT: There are PHP templates in Dreamweaver CS3 (blank though). Are they worth trying?

  2. #22
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    No and no.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #23
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok thanks! As for your "PHP Templates Tutorial", the final code is the "index.php", however, how would the "other pages" would look like? Please and thank you.

  4. #24
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Your other pages should just contain the code between the <body></body> tags, like this:

    HTML Code:
    <h2>My Header</h2>
    <p>Content content content content content.</p>
    See the code? There's no <head>,<body>,<html> and a <!DOCTYPE>. Just your content.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #25
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, also what would I name it? If I name it for example test.php and my index is index.php, would it be automatically index.php?test.php? Please and thank you.

  6. #26
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    if your content was on test.php, then you would call it by index.php?p=test if you are using tech_support's script.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  7. #27
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, and how does the title part work? Please and thank you.

  8. #28
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Have you tried reading that part? It's pretty basic stuff y'know.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  9. #29
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ahh I see. What's with the "inc"? Do I have to make a folder, if yes, how come?

    Can you please tell me how this would look like it this was my index page. http://www.athletes4excellenc.com/indexxxx.php . Please and thank you.

  10. #30
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    inc is shorthand for include. The term was developed as a way to alert the person that this is a template that will be brought (included) into some other file.

    Most notably are your generic files that you wish to use on every page of your site but do not wish to code them directly into every page. Some examples are the header and footer, and depending on the structure your navigation.

    It is not mandatory that you use an inc file or folder, it is mearly just a means of letting yourself of content contained within it.

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
  •