Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exec cgi command questions

Status
Not open for further replies.

Drew909

Programmer
Jun 25, 2000
2
0
0
US
Can I use an &lt;!--#exec cgi=&quot;url&quot;--&gt; to execute a CGI script on a completly different server?<br><br>Also...<br><br>Can the CGI script on that other server somehow tell the address of the page that executed it? (like an enviromental variable?)<br><br>And how would the remote CGI script send data back to the page that executed it?<br><br>Thank you in advance,<br>Drew
 
I don't think you'd be able to run the CGI on the remote server.&nbsp;&nbsp;As I understand it, the &quot;exec&quot; command in a server parsed page will run a local script only.&nbsp;&nbsp;From a security point of view though, SSI, and the &quot;exec&quot; command in particular, are generally regarded as not being very secure.&nbsp;&nbsp;It might be worth looking for a different solution to your problem. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
If your local webserver allows Server Side Includes and the remote script allows remote execution then it will work.<br><br>Although I don't think the remote host will be able to send data back. I think that's outside the scope of SSI. Of course I could be wrong on this point. Any other offers?<br><br><br>Seth <p>Seth Yates<br><a href=mailto:syates@hawtal.co.uk>syates@hawtal.co.uk</a><br><a href= > </a><br>
 
If none of this will work, how do sites run their banners? That is a good example of what I am talking about. The page activates a remote script that sends data back (the banner.)
 
I don't <i>know</i>, but I think the ad banner gets sent directly to the client. <br><br>The first server builds the page leaving a space for the ad. The include requests a remote script on another server which then sends the banner image to the client.<br><br>Perhaps you could contact an ad company like <A HREF=" TARGET="_new"> to confirm.<br> <p>Seth Yates<br><a href=mailto:syates@hawtal.co.uk>syates@hawtal.co.uk</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top