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?
Printable View
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.
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>
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.
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.
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.