Forum Moderators: phranque
"<!--#include virtual="http://www.maindomain.com/sub/test.txt" -->".
The ssi's won't work with :
"<!--#include virtual="test.txt" -->" or "<!--#include virtual="./test.txt" -->"
becasue the subdomains work by redirection. When I ask for [sub.maindomian.com...] it basically redirects my request.
Using the absolute path works fine until I go and upload the files to the customers actual site. When I do that I would have to go in and change all the ssi's to have the proper address for the context of their site -or- serve the includes out of my testing server, both of which stink.
I have discussed with tech support and they say "that's the way it is". I have asked if I can parse my html files ascross the php interpeter, they say no they don't allow that.
Any ideas on how I could do an include in my html files that works in both environments?
I suppose you could use something like libwww-PERL to make a 'wrapper' around the request, and have it go get the file from a remote server, but that's an advanced project, and beyond the scope of this forum.
If the files are actually on the same server, then you may be able to use symlinks to make them appear to exist in both virtual servers (domains).
Jim