Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    51
    Plugin Contributions
    0

    Default Is there a way use cgi within ZC

    Hi guys

    I have a FAQ system I like (smartfaq) that uses Perl, is there a way I can wrap the ZC look and feel around a cgi script. Thh script normaly uses a header and footer html file for that but how can I get it to work with ZC? The script is also simply used by calling the script itself.

    Cheers

  2. #2
    Join Date
    Feb 2005
    Posts
    51
    Plugin Contributions
    0

    Default Re: Is there a way use cgi within ZC

    I should try a little harder before I post - sorry :)

    Anyway in case anyone else is looking for a similar solution for their perl script

    In the define page for that page you create for the script add the code

    Code:
    <?php
    $QSTRING = $_SERVER['QUERY_STRING']; 
    while (list ($header, $value) = each ($HTTP_GET_VARS)) 
    { 
    $QSTRING = $QSTRING.'&'.$header.'='.$value; 
    }
    virtual("/cgi-bin/scriptname.cgi".'?'.$QSTRING);
    ?>
    Cheers

 

 

Similar Threads

  1. Replies: 4
    Last Post: 25 Jul 2013, 09:53 PM
  2. Is there a way to make an internal link within the catagories sidebox?
    By curbsidestudiosNET in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Sep 2010, 01:37 AM
  3. Is there any way I could use a Ï character in the title?
    By dysfunctional in forum General Questions
    Replies: 3
    Last Post: 17 Sep 2009, 05:13 PM
  4. is there a way to not use manufacturer images??
    By simplifiedmedia in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 May 2006, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg