|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
How do i include a file on another site (which is accesale via a virtual directory)
the file to be included is set up like this: http://www.mysite.com/virtualdirect...includethis.asp ive tried all sorts P. |
|
#2
|
|||
|
|||
|
unless you can do it through ftp it is not possible. being able to do that would pose a big security risk and therefore is not allowed.
__________________
Programmer's Corner |
|
#3
|
|||
|
|||
|
Now that is a pain. im sure i do it with PHP ...
so with FTP, how would you do that? ![]() |
|
#4
|
|||
|
|||
|
correct me if i'm wrong cause i've never used it/understood what it was for, but instead of file= isn't there a virtual=" equivilant? That might actually be virtual directories but i'm not sure....anyone?
|
|
#5
|
||||
|
||||
|
You can do <!--include virtual="/virtualdirectory/file.inc"--> to include files using a virtual directory. Don't know that it works for different sites though, like nopoints said, that would be a security hole.
|
|
#6
|
|||
|
|||
|
you can create a virtual directory of any network share or directory. So as long as you can map a drive or connect to the folder that has those include files.
ie. right click on website in IIS, 1) select new virtual directory. 2) enter an Alias ie TestVirtualDir 3) for directory Enter network path ( \\servername\share ) 4) enter username and password to connect to share 5) select Read, Run scripts for access permissions then to reference an include file, put this at top of asp file <!-- #include virtual="TestVirtualDir/includefile.asp" --> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > <!--Include--> file on another site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|