perl embedded in html?
ok, here's my question... for those who know javascript, you know you can just insert a little piece of code basically anywhere on your page with a <script> tag. can you do the same with cgi/perl??? thanks.
-benc
Ben C
-"The exception...is to tap the unexceptional."
fairhousing posted this at 04:07 — 14th December 1999.
They have: 1,587 posts
Joined: Mar 1999
think u may be talking bout ssi. if ur host allows it may do what u want.
------------------
Get paid to surf, email, and everything else online! 75 hrs a month at 55+ cents an hour! Beats AllAdvantage Easily. CLICK 4 DETAILS
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
Rob Pengelly posted this at 13:27 — 14th December 1999.
They have: 850 posts
Joined: Jul 1999
As Fairhousing was saying, you can use SSI. So you could put:
<!--#execute cgi="script.cgi"-->
You could also try using
<script src="script.cgi"></script>.
------------------
A 'jiffy' is an actual unit of time for 1/100th of a second.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
benc posted this at 18:22 — 14th December 1999.
They have: 33 posts
Joined: Jul 1999
wow really? for some reason i didn't think you could do ssi w/ cgi... welp, i'll go check on that now. thanks
-benc
Malte posted this at 20:33 — 14th December 1999.
They have: 297 posts
Joined: Apr 1999
I dont see how <script src...
would work, unless the output of the cgi would be of the MIME type "text/javascript"
Later,
Malte
------------------
Malte Ubl - www.Boardzilla.org
Communication: public<->programmers
of the Boardzilla BB
Maverick posted this at 20:47 — 14th December 1999.
They have: 334 posts
Joined: Dec 1999
Without using SSI to include the CGI scripts you CAN embed Perl directly into the HTML document if your server/host supports EPerl (Embedded Perl). Contact your host to see if they support it. If not, send them to: http://www.engelschall.com/sw/eperl/
Rob Pengelly posted this at 21:00 — 14th December 1999.
They have: 850 posts
Joined: Jul 1999
Malte, yup forgot to tell that. If you were to use <script src=....></script> when you printed text you would need to use
document.write(TEXT HERE')
------------------
A 'jiffy' is an actual unit of time for 1/100th of a second.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Gil posted this at 03:16 — 15th December 1999.
They have: 103 posts
Joined: Apr 1999
There is such a thing as Perlscript. It's not widely used on the client side because in order to use it, the client must have a perl compiler installed on his/her computer. It is rather popular though for Apache, which has a module that allows ASP through Perlscript. Go to http://perlscripters.com , you'd be surprised at the amount of Perlscript resources there are out there.
------------------
Gil Hildebrand, Jr.
Internet Consultant
New Orleans, LA
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.