include file from remote server

Results 1 to 3 of 3

Thread: include file from remote server

  1. #1
    Join Date
    Dec 1969

    Default include file from remote server

    can I include a script file from remote server in some way ? <BR>this returns error<BR><BR>&#060;SCRIPT LANGUAGE="VBScript" RUNAT=SERVER SRC=""&#062;&#060;/SCRIPT&#062;<BR><BR>this fails too<BR>&#060;!-- #include file="" --&#062;<BR><BR>is it possible ? or need I write component ?

  2. #2
    Join Date
    Dec 1969

    Default Not like this...

    ...If your includes have functions you intend to run or call, then no, you cannot do this. It&#039;s not supported in IIS.<BR><BR>If you just want the HTML output, you can use XMLHttp to call the page and return the output to a string in your main ASP page.

  3. #3
    Join Date
    Dec 1969

    Default The reason it's not allowed...

    Think about it a sec:<BR><BR>Somebody convinces you to include their cute little banner (or game or joke or or or ) ASP page on your page. An innocent little thing that enhances your Web site.<BR><BR>17,384 other people do the same thing. You all have nicer Web sites because of it.<BR><BR>And *NOW* the person whose code you are including changes it...he adds in something that uses the Scripting.FileSystemObject to dump the contents of your entire hard disk to him when he comes in from, say, a specific IP address. After he has grabbed all the data he can from you, he starts erasing as many files on your hard disk as he can. Or maybe installing as many viruses as he can.<BR><BR>*NOW* you *REALLY* want that capability???<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts