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 example one of these urls may be > www.example1.com and the other www.example2.com. These sites are > identical apart from the database they call to, one will call to a > database called example1 and the other example2. I want another site > (for example www.solution.com) to read what url has been entered and > to > pull in the database for that site (either example1 or example2) and > show that information. I have tried using the CURL library without > success (not sure how to use it fully) and have tried using frames but > had loads of problems regarding losing session data. can anyone help? Instead of focussing on the domain name, perhaps you should just connect to a different HOST in the database connection for the different sites. You might also want to consider using: example1.template.com example2.template.com and then you can use the sub-domain as your key to which database to use. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php