Link to home
Start Free TrialLog in
Avatar of aguldber
aguldber

asked on

ASP - Including a file that is on FTP...

This is what I am doing...I am taking a report file (.txt)that is generated on the mainframe (MVS) and using an FTP job, sending it over to the FTP service on IIS 4.0.

What I want to do is #include this .txt file into an HTML or ASP file that is on the actual web site which I have created using Frontpage 98. The reason I want to do this is to control the font size so that it will print on one page width and also provide the user with navigation as well. I can get the #include to work if the report file is on the web site (http:) but I can not get the report to include if the report is on ftp. I also tried to put the ASP file on the FTP server, so that both files were in the same place, but that didn't work either. The report files will be updated very frequently so it is important to automate the process of bringing in these reports, so I don't want any manual intervention.

Another important piece of info is that both the web server and ftp server are physically on the same machine so I don't understand why this isn't working.  

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of sybe
sybe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aguldber
aguldber

ASKER

How do I create this virtual directory?  Where do I create this directory - on the FTP server or the web server?
Creating a virtual directory with IIS4 (with the webserver):

1. open the IIS management console (program files, windows NT4 option pack, internet information server, internet service manager).
2. in the left "window" find "default web site" and right click.
3. choose "new" and then "virtual directory"
4. type the name you want to give it (click next)
5. select the directory (browse), you should select the directory which will contain the text file. (click ok)
6. it must be a "read" directory


Remember the name of the virtual directory.

Now you can include a text file by:

<!-- #include virtual="/name_of_virtual_directory/file.txt" -->

Worked great...Thanks!!!