- Impact
- 18
I have two folders on my server, lets call them "folder1" and "folder2".
folder1 is "linked" to a subdomain: folder1.domain.co.uk
folder2 is "linked" to a subdomain: folder2.domain.co.uk
I have a file in folder1 that I want to php include() into a file in folder2. Obviouslly people are going to be using the subdomains, so there is no way I can access folder1 without going through the subdomain folder1.domain.co.uk.
Now for some reason if I do:
and save the file as http://folder2.domain.co.uk/anotherfile.php it won't include it.
Even if I have the include() file in www.domain.co.uk/anotherfile.php.
Is there anyway to get this to work? Or is there anyway to access folder1 from the folder2 subdomain?
I hope I have explained well! I have just made myself even more confused! :lol:
Thanks in advance
Tom
folder1 is "linked" to a subdomain: folder1.domain.co.uk
folder2 is "linked" to a subdomain: folder2.domain.co.uk
I have a file in folder1 that I want to php include() into a file in folder2. Obviouslly people are going to be using the subdomains, so there is no way I can access folder1 without going through the subdomain folder1.domain.co.uk.
Now for some reason if I do:
PHP:
include('http://folder1.domain.co.uk/thisfile.php');
Even if I have the include() file in www.domain.co.uk/anotherfile.php.
Is there anyway to get this to work? Or is there anyway to access folder1 from the folder2 subdomain?
I hope I have explained well! I have just made myself even more confused! :lol:
Thanks in advance
Tom
Last edited:






