Jump to content

Really Basic Question about Variables


ckoster

Recommended Posts

Howdy,

 

I have a hosted account where I have multiple domains parked. They all point to the same webroot directory. What I would like to do is figure out how to read the url into a variable and then use that to set the value of a variable.

 

For example,

if url = domain1.com then logo = domain1logo.jpg

if url = domain2.com then logo = domain2logo.jpg

if url = domain3.com then logo = domain3logo.jpg

 

The part I'm having difficulty figuring out is how to capture the url as a variable.

 

Thanks,

 

ck

Link to comment
https://forums.phpfreaks.com/topic/150783-really-basic-question-about-variables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.