Jesse Pfieffer
Jesse Pfieffer

Reputation: 85

How to retrieve file from folder on on another subdomain without using full url

I have a file "area1.mysite.com/gallery/settings.php" that I need to include in "area2.mysite.com/index.php". The issue is that I cannot use the full url I need to go backwards from /area2/www/index.php to /area1/www/gallery/setting.php... Does that make scents?

Upvotes: 1

Views: 64

Answers (1)

simonthumper
simonthumper

Reputation: 1844

Surely this could be done using relative links? so you would include

../../../area1/www/gallery/setting.php

As long as that is your correct file setup in the question... But yeah basically each ../ moves you up one folder, and then you can dive back down just like you would with a non-relative link

Upvotes: 2

Related Questions