Hi I have a question hopefully someone knows. I needed to make my own search page because I needed to use PHP. I was successful after reading the topic about this in other threads. But I am trying to do something else and now I am running into a problem. I'll have to explain my setup first:
I have a web server with windows server 2008 rt and IIS7(this is where our domain name is linked to). I have another location on my network where I store all my data. I have virtual directories on IIS7 that link to the data(and search page)(The reason I do this is because I ran out of space on my web server). This is where I run into a problem and I am pretty sure it has to do with this line of php code:
$output = shell_exec("C:\\Inetpub\\wwwroot\\zoom\\search.cgi ");
Since the search page and the search.cgi is on another location than the web server(but the search page and search.cgi are in the same location on the 2nd computer), I am trying to figure out what the address should be. I was doing something like this:
$output = shell_exec("C:\Inetpub\wwwroot\OH\search\search.cg i");
This didn't work so I tried this thinking maybe it has something to do with IIS7:
$output = shell_exec("\\server02\wwwroot\OH\search\search.cg i"); (This would be the network location from the web server)
My guess is the address is wrong since I was able to get it work when the search page and search.cgi was on the actual server01 and not in another location(server02). If someone knows the correct path basing it off the address above that would be so helpful. Or is this not even possible.
-Thanks
I have a web server with windows server 2008 rt and IIS7(this is where our domain name is linked to). I have another location on my network where I store all my data. I have virtual directories on IIS7 that link to the data(and search page)(The reason I do this is because I ran out of space on my web server). This is where I run into a problem and I am pretty sure it has to do with this line of php code:
$output = shell_exec("C:\\Inetpub\\wwwroot\\zoom\\search.cgi ");
Since the search page and the search.cgi is on another location than the web server(but the search page and search.cgi are in the same location on the 2nd computer), I am trying to figure out what the address should be. I was doing something like this:
$output = shell_exec("C:\Inetpub\wwwroot\OH\search\search.cg i");
This didn't work so I tried this thinking maybe it has something to do with IIS7:
$output = shell_exec("\\server02\wwwroot\OH\search\search.cg i"); (This would be the network location from the web server)
My guess is the address is wrong since I was able to get it work when the search page and search.cgi was on the actual server01 and not in another location(server02). If someone knows the correct path basing it off the address above that would be so helpful. Or is this not even possible.
-Thanks
Comment