Guys!
I will explain what I want to do. If anyone can help with this, please, give some advices.
I have a website, let's call it http://mysite.com. And subdomain, let's say http://myname.mysite.com.
There is one configuration file inc.php with some personal data each for mysite.com and myname.mysite.com, example ICQ number. All general website files located in mysite.com directory.
I want to be able all general files of the mysite.com at the subdomain myname.mysite.com, in order not to create completely similiar files at subdomain. But with including individual configuration file, located at the myname.mysite.com, containing individual ICQ number.
This is the example how I want this to work:
Main domain "mysite.com" has root folder "public_html" with pages: index.php, about.php, articles.php and configuration file inc.php with icq number "111-111". So when serfing "mysite.com" website, you see there ICQ number from inc.php.
Subdomain "myname.mysite.com" has folder "public_html/subdomain/myname" with only a configuration file inc.php with ICQ number "222-222". So when going to myname.mysite.com you will see the web pages from "mysite.com" but the ICQ number will get from here "public_html/subdomain/myname/inc.php". And in address bar you will see web pages as: http://myname.mysite.com/index.php http://myname.mysite.com/about.php http://myname.mysite.com/articles.php
So visitors will think that they are serfing individual website myname.mysite.com, but in real, visitors will serf on the mysite.com webpages. So if I change content on mysite.com, this content will be changed on myname.mysite.com.
I need all this staff cause I want to organize affiliate programm with giving personal subdomain name to my partners but with personal configuration file inc.php, that will take ICQ number for consulting.
I guess I've tried to explain what I want to do. God, do hard to explain this situation. Ah, forgot to mention, all this I want to do on PHP.