Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 03-27-2001, 12:31 PM
  #1
pixelmonkey
Wrench Thrower, Keeper of The Trees, and Lord of the Apes
 
pixelmonkey's Avatar
 
Join Date: Dec 2000
Location: the trees with several other brush apes
Posts: 1,085
iTrader: (0)
pixelmonkey will become famous soon enough
Question

can i activate a cgi in a static page via <embed></embed> tags? i know it doesnt work with a <!--include//--> statement.

please give me some feedback
chris<pixelmonkey>
pixelmonkey is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-27-2001, 04:15 PM
  #2
kevin
Super Deity (Level 18)
 
Join Date: Sep 2000
Posts: 10,217
iTrader: (0)
kevin is on a distinguished road
You sure come up with some hard/imaginative questions

I don't believe that will work. Embedded elements are handled on the client side, not the server side, like a cgi script would most likely be. The source for the embed tag can be remotely stored, but it needs to download and use a client side application to run it.

Or maybe someone knows differently.

Regards,
Kevin
kevin is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-27-2001, 06:28 PM
  #3
Tony Hawk
Fighter (Level 4)
 
Join Date: Mar 2001
Location: Kansas
Posts: 31
iTrader: (0)
Tony Hawk is on a distinguished road
You CAN include CGI scripts in a static page by using either

<!--#exec cgi="/cgi-bin/script.cgi" -->
or
<!--#include virtual="/cgi-bin/script.cgi" -->

Usually these .html documents need to be renamed to .shtml before the server will parse them.
__________________
Tony D. Hawk
Dot Matrix Web Services and MySQL Development
http://www.dotmatrix.net - support@dotmatrix.net
Tony Hawk is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-28-2001, 09:32 AM
  #4
pixelmonkey
Wrench Thrower, Keeper of The Trees, and Lord of the Apes
 
pixelmonkey's Avatar
 
Join Date: Dec 2000
Location: the trees with several other brush apes
Posts: 1,085
iTrader: (0)
pixelmonkey will become famous soon enough
almost...

i tried both of the lines you listed.. and worked them around some, but still not active. the code i'm currently working with is:

<html>
<head>
<title>test</title>
</head>

<body>

<!--#exec cgi="ubb/cgi-bin/Ultimate.cgi" -->

gdsagadf

<!--#include virtual="/ubb/cgi-bin/Ultimate.cgi" -->

</body>
</html>

clean and cut simple. i have the text listed between the includes for a break point to see which is working. i have tried them both seperately, and together, and with slashes at the start & without. The U in my cgi is capped because my server is Unix. any other suggestinos?


i have a cold, but the gears are still turning
chris<pixelmonkey>
pixelmonkey is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-28-2001, 09:48 AM
  #5
Jacob
Lord (Level 16)
 
Join Date: Oct 2000
Location: Michigan
Posts: 542
iTrader: (0)
Jacob is on a distinguished road
Question

Hi Chris,

Do you get some errors when you use that code? Or do the tags display in your source code?

Eg: You goto 'view' -> 'source' and you still see:
<!--#exec cgi="ubb/cgi-bin/Ultimate.cgi" -->

This will tell you if SSI is being parsed on your pages. If not, you will need to enable SSI. Or try renaming your page to end with an extension '.shtml'.

If SSI is enabled, but something is wrong with your cgi-script, you will get an error similiar to :

[ Error Processing... blah blah]

Regards,
__________________
Jacob Wheeler, Inc.
Jacob is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 03-28-2001, 09:52 AM
  #6
pixelmonkey
Wrench Thrower, Keeper of The Trees, and Lord of the Apes
 
pixelmonkey's Avatar
 
Join Date: Dec 2000
Location: the trees with several other brush apes
Posts: 1,085
iTrader: (0)
pixelmonkey will become famous soon enough
doh!

big duh on my part! i forgot to add the s in *.shtml

let me try that again!..... it works! no all i need to do is hack around on the header location and display my static content below that, before the main cgi (ubb 5.45c)

thanks
chris<pixelmonkey>
pixelmonkey is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply
KEEP TABS
SPONSORS
 
Boxedart

 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 05:37 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.