Specials | Announcements | Contact | Site Map
Willmaster.com
Hijack-proof forms. Surveys. List building.

Solid, safe website tools.

Whatever your need, Will Bontrager builds powerful software solutions.

Affiliate Cookie Setter
Search WillMaster.com:

WillMaster > Support > CGI Q&A

If you don't find the answer to your question in these archives, ask your CGI question at the Current Master Series CGI Forum.

Calling the CGI script (MMGR) within HTML

Author Message
29Mar05

Andy
Subject: Calling the CGI script (MMGR) within HTML

I installed MasterMerryGoRound, but I can't figure out how to use it. I want to have the random text links that I've created placed at a certain place on a page.

What tag should I place within the HTML to call the script and have it place the content on my page?

Can I put the tag calling the CGI script inside a text file that is called using an SSI virtual include?

29Mar05

Will

[Email]

In response to: Calling the CGI script (MMGR) within HTML

Use an SSI #include virtual="____" tag, Andy. And yes, SSI include tags can be used in files that are themselves included in a web page.

Note that Master Merry-Go-Round does not do random content. Instead, it rotates the content that's loaded into it with the control panel.

29Mar05

Andy
In response to: Calling the CGI script (MMGR) within HTML

I'm still not clear on how to run the script itself. Wouldn't I need something like this:

<!--#exec cgi="/cgi-bin/MasterMerryGoRound.cgi"-->

Then when the script randomly picks a text, would it be inserted in the place where the script is executed?

Or -- ahhhhhh! Maybe I understand now. Is the "data" file simply a SSI script created by the CGI script? If that is the case, I would just include the output (data) file and no worries? If that's all there is to it, I can handle that.

29Mar05

Andy
In response to: Calling the CGI script (MMGR) within HTML

By the way, in my first unsuccessful test, I used SSI and an SSI "exec cgi" command. Nothing visibly happened, although I assume when I loaded the page the script executed. Shortly after that my entire domain went down due to what tech support is calling a DNS loop. They have requested a DNS refresh and say the site will be down for 4-6 hours. Tech support said that the CGI script wouldn't/couldn't have caused this type of problem. But do you think incorrectly executing the script this way could have brought about a loop that would take my site down? You know more about how the script works than I do. If there's anything I should mention to tech support please let me know. Otherwise, I'll just wait for the DNS refresh.

29Mar05

Will
In response to: Calling the CGI script (MMGR) within HTML

Andy, one of these tags should execute the script and replace the tag with the rotated content.

<!--#exec cgi="/cgi-bin/MasterMerryGoRound.cgi"-->
<!--#include virtual="/cgi-bin/MasterMerryGoRound.cgi"-->

If neither of the above work, then it's most likely one of two possible reasons: (1) The web page is not parsed for SSI commands, or (2) The script itself is running with errors.

You can test (1) by using an SSI tag you know works. If that tag works, then (1) isn't the problem. (Usually, web pages that will have SSI tags parsed need to have a file name that ends with .shtml, but that's not always the case.)

You can test (2) by typing the URL of the script directly into your browser. If the script is working okay, the content should display in the browser window. If it does not work okay, you'll probably see an error message of some kind.

To address your concern, this program couldn't mess with server DNS settings.

29Mar05

Andy
In response to: Calling the CGI script (MMGR) within HTML

Thanks -- I probably just wrote the tag wrong. I know I used a slightly different path to the script. I'll try this as soon as my site is back. I know SSI works, because I already use some SSI throughout the site (just needed an upgrade).

THANKS VERY MUCH, really, for taking the time to respond.