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?
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?
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
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.
Your other pages should just contain the code between the <body></body> tags, like this:
See the code? There's no <head>,<body>,<html> and a <!DOCTYPE>. Just your content.HTML Code:<h2>My Header</h2> <p>Content content content content content.</p>
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
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.
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
Thanks, and how does the title part work? Please and thank you.
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
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.
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