weee
09-13-2005, 06:27 PM
Can I have the address of my include contain http://... the whole URL?
Thanks!
Thanks!
|
Click to See Complete Forum and Search --> : Include file with http.. can I? weee 09-13-2005, 06:27 PM Can I have the address of my include contain http://... the whole URL? Thanks! slyfox 09-15-2005, 05:59 PM I don't know, try it, it probably will work... weee 09-15-2005, 08:17 PM 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..."? buntine 09-15-2005, 09:35 PM 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? Regards. russell 09-16-2005, 02:42 AM 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" ...? :rolleyes: slyfox 09-16-2005, 03:03 AM 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: Response.Redirect("http://www.whateverdomain.com") Let me know if this works, which I'm pretty sure will... slyfox 09-16-2005, 03:10 AM Oh, here's the code to grab a remote page's source if above doesn't work for you: function GetHTML(strURL) { var objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP"); objXMLHTTP.Open("GET", strURL, false); objXMLHTTP.Send(); var strReturn = objXMLHTTP.responseText; objXMLHTTP.Close; objXMLHTTP.Delete; return strReturn; } Response.Write(GetHTML("http://www.whateverdomain.com")); It's done in ASP JScript, just change it to ASP VBScript... it's easy but if you don't know how just ask. Good luck webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |