Including files in virtual directories on IIS
Posted: Wed Jun 12, 2002 10:23 am
Hello all,
I have an issue working with NT4 Server, IIS4 and PHP4. I have created a couple of virtual directories in the website I am running PHP in through IIS. These are looked upon as subdirectories of the web.
I have been able to successfully use PHP to provide links to images in these virtual directories pretty easily, so I know that IIS recognizes them and HTML can find them.
Here's what I would like to do...I would like to have several directories where include files are kept. For instance, one virtual IIS directory is called "newslinks", and points to a directory on another server.
I'd like to be able to call this...
<?
include "newslinks/skedselect.htm"
?>
...where "skedselect.htm" is a file in the "newslinks" virtual IIS directory. Problem is, PHP doesn't recognize newslinks. I can include files pretty easily if I move them to the root of IIS or create a folder in IIS and look there for the file to include.
I've tried several things, but need a simple way to be able to get HTML files to include from various servers, and don't want to modifiy the PHP.INI file all the time to get the right directories, I think management through IIS would be better using virtual directories.
Anyone have any thoughts on this? Any help or direction would be most appreciated!
I have an issue working with NT4 Server, IIS4 and PHP4. I have created a couple of virtual directories in the website I am running PHP in through IIS. These are looked upon as subdirectories of the web.
I have been able to successfully use PHP to provide links to images in these virtual directories pretty easily, so I know that IIS recognizes them and HTML can find them.
Here's what I would like to do...I would like to have several directories where include files are kept. For instance, one virtual IIS directory is called "newslinks", and points to a directory on another server.
I'd like to be able to call this...
<?
include "newslinks/skedselect.htm"
?>
...where "skedselect.htm" is a file in the "newslinks" virtual IIS directory. Problem is, PHP doesn't recognize newslinks. I can include files pretty easily if I move them to the root of IIS or create a folder in IIS and look there for the file to include.
I've tried several things, but need a simple way to be able to get HTML files to include from various servers, and don't want to modifiy the PHP.INI file all the time to get the right directories, I think management through IIS would be better using virtual directories.
Anyone have any thoughts on this? Any help or direction would be most appreciated!