🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.www
Article #435

Re: Jak uruchomic samoistnie CGI?

#435
From: al... Janusz A.Urbanowicz
Date: Mon, 29 Jan 1996 00:00
29 lines
1622 bytes
In article <4eil0t$g...@bnet.fuw.edu.pl>,
Wojciech Moczydlowski <khaliff@I_should_put_my_domain_in_etc_NNTP_INEWS_DOMAIN> wrote:
>W zasadzie subject mowi sam za siebie, ale
>zadam pytanie dla formalnosci 
>Jak zrobic, aby skrypt CGI odpalal sie
>bez zadnego klikniecia, po prostu razem
>z wgrywana strona???
>
Nalezy go odpalic jako 'tresc wlaczana przez serwer' ('server side
include'). Czyli (serwer NCSA): ustawic w pliku srm.conf (u mnie
/var/httpd/conf/srm.conf) zeby normalny HTML byl server-parsed:

AddType text/x-server-parsed-html .html

w odpowiednim miejscu pod koniec. Nastepnie mozemy juz wlaczac CGI do stron,
piszac w dokumencie:

<!--#exec cgi="sciezka_skryptu"--> i juz. W czasie transmisji strony do
breowsera serwer uruchomi skrypt i jego stdout wstawi do dokumentu.

Jak sie to robi przy innych serwerach to juz niech sie wypowiedza fachowcy.

ALex
PGP mail welcome
-- 
Janusz A. Urbanowicz, student of physics, Amiga user 
system administrator at eris.phys.uni.torun.pl  | finger fot PGP & Geek Code
E-mail: al...@eris.phys.uni.torun.pl | WWW: http://eris.phys.uni.torun.pl/~alex
"They don't call it 'A Net Of Milion Lies' for nothing.."
Technical Details
Message-ID: <4ej81e$1o6@Waldemar.mat.uni.torun.pl>
Path: mbox-mo1.pugleaf.net!unknown!not-for-mail
References: <4eil0t$gcj@bnet.fuw.edu.pl>

Show Full Headers
Complete Article Headers
From: al...@eris.phys.uni.torun.pl (Janusz A.Urbanowicz)
Subject: Re: Jak uruchomic samoistnie CGI?
Date: 1996/01/29
Message-ID: <4ej81e$1o6@Waldemar.mat.uni.torun.pl>
X-Deja-AN: 137171050
references: <4eil0t$gcj@bnet.fuw.edu.pl>
organization: Kolo Naukowe Studentow Fizyki Uniwersytetu Mikolaja Kopernika
mime-version: 1.0
newsgroups: pl.comp.www
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit