[Xitami] cgi-bin
R O
xitami@lists.xitami.org
Tue, 11 Feb 2003 11:24:20 -0800
This is not a Xitami question, this is an HTML/PERL/Flash question. Wrong
forum.....But, b/c I am such a nice guy I will answer it. If this doesn't
answer it completely for you then at least it will get you on the right path
and you can figure it out by example.
The following is a clip of code out of a cgi script I wrote. When called it
simply prints the following HTML to the browser. The browser then calls the
Flash functions and loads the Flash image into a normal HTML page. Though,
depending on the browser, you could have errors. I recall it not always
working properly because of how the CGI calls the script - something about
where the cgi starts in relation to how the browser calls the Flash
functions. Should get you on the right path though.
<start>
#!/usr/local/bin/perl
...
...
CGI/HTML stuff
...
...
print "<!-- URL's used in the movie-->" ;
print "<!-- text used in the movie-->" ;
print "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"" ;
print "
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\#version=5,0,0,0\"";
print "WIDTH=100% HEIGHT=100%>" ;
print "<PARAM NAME=movie VALUE=\"MainSiteA.swf\"> <PARAM NAME=loop
VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor
VALUE=\#FFFFFF> <EMBED src=\"MainSiteA.swf\" loop=false quality=high
bgcolor=\#FFFFFF WIDTH=100% HEIGHT=100%
TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></EMBED>";
print "</OBJECT>" ;
...
...
more CGI/HTML stuff
...
<end>
Russel P. Olinger
(310) 466-3399
rolinger1@hotmail.com
>From: "Dan Balkaran" <dan@balkaran.com>
>Reply-To: xitami@lists.xitami.org
>To: <xitami@lists.xitami.org>
>Subject: [Xitami] cgi-bin
>Date: Sun, 9 Feb 2003 21:04:40 -0800
>
>Does any one know how to run a flash image in a html page located in the
>cgi-bin. It works in thw webpage folder , but I have create a perl script
>that require a flash image in the cgi-bin folder
>Thanks
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail