Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

exec cgi command questions

exec cgi command questions

exec cgi command questions

Can I use an <!--#exec cgi="url"--> to execute a CGI script on a completly different server?


Can the CGI script on that other server somehow tell the address of the page that executed it? (like an enviromental variable?)

And how would the remote CGI script send data back to the page that executed it?

Thank you in advance,

RE: exec cgi command questions

I don't think you'd be able to run the CGI on the remote server.  As I understand it, the "exec" command in a server parsed page will run a local script only.  From a security point of view though, SSI, and the "exec" command in particular, are generally regarded as not being very secure.  It might be worth looking for a different solution to your problem.

0 1 - Just my two bits

RE: exec cgi command questions

If your local webserver allows Server Side Includes and the remote script allows remote execution then it will work.

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?


Seth Yates

RE: exec cgi command questions

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.)

RE: exec cgi command questions

I don't know, but I think the ad banner gets sent directly to the client.

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.

Perhaps you could contact an ad company like http://doubleclick.net/ to confirm.

Seth Yates

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close