HighDots Forums  

Two Sites - One Backend

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Two Sites - One Backend in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Shaun
 
Posts: n/a

Default Two Sites - One Backend - 07-06-2004 , 12:02 PM






Hi,

I have created an online scheduling system using PHP and MySQL. The site is
uses CSS for the presentation and each page uses a header and footer file so
that only core functionality is contained in each page. I now need to create
another site which runs using the same database and function files but looks
completely different. So the only files I would need to add here are a new
header, footer and CSS file. The new site will allow limited functionality
to the current site. The functionality will be limited by the options
viewable in the menu.

My question is how can I configure the site such that if URL X is entered
then the relevant header footer and CSS files are loaded and if URL Y is
entered a different header, footer and CSS file is loaded?

Thanks for your help



Reply With Quote
  #2  
Old   
NewTek Media
 
Posts: n/a

Default Re: Two Sites - One Backend - 07-06-2004 , 12:52 PM






put your header and footer into different include files. then recall them by using a require script. you will find that button in dreamweaver under the php tab.

Reply With Quote
  #3  
Old   
Shaun
 
Posts: n/a

Default Re: Two Sites - One Backend - 07-06-2004 , 12:58 PM



Hi,

Thanks for your reply, but how would I know which files to include based on
the URL entered?

"NewTek Media" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
put your header and footer into different include files. then recall them
by using a require script. you will find that button in dreamweaver under
the php tab.




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.