Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how to setup website functionality
Old 08-30-2008, 09:08 PM how to setup website functionality
Skilled Talker

Posts: 90
Name: Ed
Trades: 0
I'm at the point where I've finally got my site setup in Dreamweaver and looking the way I want it to in my browsers. Now I'm wondering what the most efficient method would be to get each page to show up through the site's navigation. I was reading up on php includes but i'm not sure if i understand it right. Is it that, say I have a "Contact Us" page with the info for that page in a plain html file, what's the right way to include the consistent aspects of my site, like the navigation, header, footer, content area..etc. Do I just have the <div> tags in the "Contact Us" page and then put the php include code in between the tags for each of them? (header,footer,content area,nav).

Last edited by mrflume; 08-30-2008 at 09:10 PM..
mrflume is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-31-2008, 06:41 AM Re: how to setup website functionality
Skilled Talker

Posts: 85
Name: Ilyes Rhouma
Trades: 0
I don't think I understand.
Are you asking how to include a header.. with php ?

So then do that:
<?php include('filename'); ?>
If you put that in contactus.html, rename it to contactus.php
PHP script installation
If you don't want to rename files to php: run php script in html

I hope this will help you.
__________________
Want a cheap and custom programmer or writer ?
Please login or register to view this content. Registration is FREE

Are you
Please login or register to view this content. Registration is FREE
? Start
Please login or register to view this content. Registration is FREE
free and earning money !
Please login or register to view this content. Registration is FREE
Ilyes is offline
Reply With Quote
View Public Profile Visit Ilyes's homepage!
 
Old 08-31-2008, 12:40 PM Re: how to setup website functionality
Skilled Talker

Posts: 90
Name: Ed
Trades: 0
Ok I think I need some clarification on a few things. I have a bunch of divs setup in my "template" page (the consistent layout of my site, header,footer, navigation, content area.) Do I have to put the header, footer, navigation, and content area into seperate include files? and then call them with php includes within the other pages (Contact page, Testimonials page..etc)? The other thing I'm unsure about is for example my Contact page, do I just put whatever text and images I want on that page directly in it along with the includes for the header, footer, content area, and navigation? Sorry for the confusion, I'm relatively new to php.
mrflume is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to setup website functionality
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11449 seconds with 12 queries