[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 question about HTML's



At 08:49 AM 6/24/97 +0300, Meni Shy wrote:
>Ahalan ILUG,
>
>1. How can I include the text output of a cgi within a HTML page? (apache 
>server)

And another note - you can also write a CGI script (say foo.cgi) that will
perfrom an HTTP query for another CGI script (say bar.cgi) and then embedd
foo.cgi's output within its output. Say, in Perl:

$foo_text = http_query("localhost", "/cgi-bin/foo.cgi?param=hello");
print "Content-Type: text/html\n\n";
print "<HTML><BODY>\nFoo returned:<BR>\n";
print "<PRE>\n", $foo_text, "\n</PRE>\n";
print "<BR><BR>Isn't it cool?<BR><BR>\n";
print "</BODY></HTML>"

Shlomi Fish



----------------------------------------------------------
Shlomi Fish                                Smart Link Ltd.
Home: shlomif@ibm.net
Work: shlomi@slink.co.il

The Bible dictates that "Thou shalt not seethe [=cook] a kid [= young goat]
in his mother's milk." To avoid possibility of breaking that regulation,
the Jewish tradition ruled that it also applies to female goats, to mature
goats, and to the meat and milk of two completely unrelated goats. It is
also forbidden to eat the meat with fresh milk, and it applies to beef and
mutten as well (including mixing the milk and meat of two different
beasts). Finally, chicken, who are incapable of milk production, may not be
eaten along with any mammal's milk either. 

We are fortunate that most mathematicians were not Jewish. Otherwise, it
would have been forbidden to divide by all numbers between -1 and 1.
----------------------------------------------------------


References: