OZONE Asylum
Forums
Server-Side Scripting - Oh my!
First Try
This page's ID:
28630
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
A php script can do whatever you instruct it to, for any page on which you run it ;) What you really want to do is to include a piece of HTML. You can do this using the php include() function. If you have been following Dan's tutorials at the GN, this practice is covered pretty well. Basic concept: create one file with your navigation. use the include() function to include that file on whatever page you want it displayed. A typical page template for me will be setup like this - file 1: header.php - this file includes the start of the HTML document, from the DOCTYPE, head element, open of the body tag, and whatever navigation will start the page (which doesn't just have to be at the top...a side navigation will fit this way just as easy), usually ending the with opening of a <div id="content"> file 2: footer.php - this file closes the open 'content' div, the body tag, and the html tag. It may or may not also contain a <div id="footer"> with whatever relevant content is needed there. actual page files - these files are the actual content of the site. each one will start and end with a bit of php which will include the header and the footer, with all content in between. There is no limit to the number of pages, and no limit to what you can include in this manner. [small](Edited by [url=http://www.ozoneasylum.com/user/163]DL-44[/url] on 11-10-2006 04:24)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail