in reply to Re: Do I need a setuid script ?
in thread Do I need a setuid script ?

thanks for the suggestions and sorry if my question was kind of incomplete.. I was all about 'permission problem' cos during development i was getting some error-logs about that and also because of the 'command-line' success'.... Talking about creating the SWF on the fly ...i have to admit i don't even know how to start doing this... Do i print it to the browser?

Replies are listed 'Best First'.
Re: Re: Re: Do I need a setuid script ?
by fsn (Friar) on Apr 09, 2002 at 17:39 UTC
    The short answer is that, yes, you just print to the browser. You must begin with a correct Content-type-header, then two linefeeds and then you print the SWF data to the browser.

    Something like

    
    print "Content-type: application/x-shockwave-flash\n\n";
    print $SWFdata;
    
    
    would suffice as a really simple SWF-on-the-fly-generation-CGI- script. You get the picture.

    The part where you generate $SWFdata is obviously the non-trivial part, but you seem to have solved that already. If I remember correctly, there is a SWF-creation module that's perhaps worth checking out.