Include file with http.. can I?
Can I have the address of my include contain http://... the whole URL?
I don't know, try it, it probably will work...
I tried it and it didn't work but I wasn't sure about the syntax.
Don't get me wrong but does it make sense answer: "I don't know..."?
As far as I am aware, the included file must be local and preferably relative to the root directory of the Web Site.
I have not looked into the possibilities of grabbing data from remote servers. Mayby try something via the XML or FSO api's?
You can't. That would be a huge security hole. PHP allows it though, along with some other really interesting security flaws...can you say "register globals" ...?
OK... here's a thought... give it a go and it might surprize you:
Create an asp page that you will use as the include file on your local domain, but it must be an asp page, then put only this code in it:
Let me know if this works, which I'm pretty sure will...
Oh, here's the code to grab a remote page's source if above doesn't work for you:
var objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP");
objXMLHTTP.Open("GET", strURL, false);
var strReturn = objXMLHTTP.responseText;
It's done in ASP JScript, just change it to ASP VBScript... it's easy but if you don't know how just ask.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)