Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Location
    Australia
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multiple SSI Text Files Updated from ONE CGI Script...

    Hi All,
    sorry "major newbie" here

    Dilemma: lost script - need it yesterday!

    How it works:
    • I have a site where every page uses SSI html or text files for its general information

    • One admin form page with 18 'text areas' that have their respective files inserted by SSI

    • Update the required text in the required area

    • One submit button for the page

    • One CGI script that updates all of the html or text files


    Where the script has gone I do not know. I have been trying to mod another script tto do the same - but since I know next to zero - not having much luck.

    Can anyone help out?

    I need to get this happening last week

  • #2
    Regular Coder
    Join Date
    Jun 2012
    Location
    Near Chicago, USA
    Posts
    123
    Thanks
    7
    Thanked 19 Times in 19 Posts
    Quote Originally Posted by PhatBoi View Post
    Hi All,
    sorry "major newbie" here

    Dilemma: lost script - need it yesterday!

    How it works:
    • I have a site where every page uses SSI html or text files for its general information

    • One admin form page with 18 'text areas' that have their respective files inserted by SSI

    • Update the required text in the required area

    • One submit button for the page

    • One CGI script that updates all of the html or text files


    Where the script has gone I do not know. I have been trying to mod another script tto do the same - but since I know next to zero - not having much luck.

    Can anyone help out?

    I need to get this happening last week
    Try this:

    Code:
    #!/usr/bin/perl
    use strict;
    print "Content-type: text/html\n\n";
    print <<TOEND;
    
    Here, put whatever needs to be sent to the web page.
    
    Note that dollar sign characters and commercial at characters need to be escaped.
    Like: \$ and \@
    
    TOEND
    exit;
    Will
    Numerology API for apps - Facebook, iPad, mobile phones. No charge to use API. [info]


  •  

    Posting Permissions

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