Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-04-2012, 10:50 AM   PM User | #1
PhatBoi
New to the CF scene

 
Join Date: Aug 2012
Location: Australia
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
PhatBoi is an unknown quantity at this point
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
PhatBoi is offline   Reply With Quote
Old 08-17-2012, 11:18 PM   PM User | #2
Will Bontrager
Regular Coder

 
Join Date: Jun 2012
Location: Near Chicago, USA
Posts: 123
Thanks: 7
Thanked 19 Times in 19 Posts
Will Bontrager is an unknown quantity at this point
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]
Will Bontrager is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:15 PM.


Advertisement
Log in to turn off these ads.