Re: [PHP] PHP Template Trouble

2006-10-26 Thread Richard Lynch
On Wed, October 25, 2006 4:49 am, Kevin wrote: > I am trying to have 1 template site and have an unlimited number of > websites using this template site to call there own information. > > The sites are exactly the same except for the database, each of the > sites also needs there own URL, for examp

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Stut
I haven't used IIS for a while, but this should still be similar in the latest version... In the website properties hit the Advanced... button next to the IP address. IIRC the top box is labelled "Web Site Identities" or similar. You can add identities with the same IP address but a different

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Kevin
"This site is using the database name \"{$db_name}\""; print ""; ?> If you can't get it to work using this method, I give up :P Cheers ;) - Brad -Original Message- From: Kevin [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 10:39 AM

RE: [PHP] PHP Template Trouble

2006-10-26 Thread Brad Fuller
[EMAIL PROTECTED] > Sent: Thursday, October 26, 2006 10:39 AM > To: php-general@lists.php.net > Subject: Re: [PHP] PHP Template Trouble > > But the dedicated server has security. In order to use it you must > create accounts (these are your ftp accounts) so basically I have > > exam

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Kevin
ry I don't have more specific instructions on how to do the above. Hope that's enough to get you started in the right direction. -Brad -Original Message- From: Kevin [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 10:15 AM To: php-general@lists.php.net Subject: Re: [

RE: [PHP] PHP Template Trouble

2006-10-26 Thread Brad Fuller
26, 2006 10:15 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP Template Trouble Yes all the sites are located on a Windows 2003 Dedicated Server. Kevin Brad Fuller wrote: > Kevin, > > Are all these sites hosted on the same box? > > -Brad > > > > -Original

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Kevin
Subject: Re: [PHP] PHP Template Trouble Hi Brad, That sounds like a good idea however: Where would config.php go? If it goes on the www.solution.com side of things, then $_SERVER[HTTP_HOST] will always be www.solution.com and if it goes on another then it would be www.example1.com. What you

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Kevin
Yes all the sites are located on a Windows 2003 Dedicated Server. Kevin wrote: Sorry, made a mistake in that last post: "even if using frames on www.example1.com (using them to load www.solution.com) $_SERVER[HTTP_HOST] would still equal www.example1.com " It would actually equal www.solu

RE: [PHP] PHP Template Trouble

2006-10-26 Thread Brad Fuller
Kevin, Are all these sites hosted on the same box? -Brad -Original Message- From: Kevin [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 9:37 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP Template Trouble Hi Brad, That sounds like a good idea however: Where

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Kevin
Sorry, made a mistake in that last post: "even if using frames on www.example1.com (using them to load www.solution.com) $_SERVER[HTTP_HOST] would still equal www.example1.com " It would actually equal www.solution.com once its in the frame as well not www.example1.com which is what i've put

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Kevin
Hi Brad, That sounds like a good idea however: Where would config.php go? If it goes on the www.solution.com side of things, then $_SERVER[HTTP_HOST] will always be www.solution.com and if it goes on another then it would be www.example1.com. What you have put would be the kind of solution I

RE: [PHP] PHP Template Trouble

2006-10-26 Thread Brad Fuller
>> Hi, >> >> I am trying to have 1 template site and have an unlimited number of >> websites using this template site to call there own information. >> >> The sites are exactly the same except for the database, each of the >> sites also needs there own URL, for example one of these urls may be >

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Kevin
Hi, Yes there was an error, I never meant to post 3 times it backlogged in the system and my bulk detector picked up the email from php.net asking me to register my email so sorry about that. I am actually using Windows IIS, there is a IISRewrite which does the same as mod_rewrite, however the

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Frank Arensmeier
Kevin, there is no need to post the same question three times to this list. Your chances on getting helpful responses won't increase. The issue you describe is more related to Apache (assuming that you are on an Apache server) and URL rewriting than to PHP. Ask Google for "Apache mod_rewrit