Forum Moderators: coopster

Message Too Old, No Replies

URL from text file in domain root

need to insert a url stored in a text file found at domain root

         

spkldbrd

7:57 pm on Jan 19, 2011 (gmt 0)

10+ Year Member



I'm new to PHP, but hope someone can offer some assistance.

I have several subdomains that share a single set of template files by symbolic link. In the template, I need to create a link that is unique to the subdomain being viewed.

My thought was to store the URL in a text file in the root of each subdomain and write my link using the contents of that text file.

can this be done?

thanks!

Shingetsu

1:06 pm on Jan 20, 2011 (gmt 0)

10+ Year Member



ok wait... what is it you want? I wanna try helping but i dont understand the question.
You have templates... in every sub-domain...
you want to make a link for each tamplate...
each link must go to only one sub domain....
why do you need a text file?
you can use js window.location("$loc") trick or a simple a href?