This is a discussion on Apache and DSO Basics Doubt within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi, I want to extend the Apache Server. In My Model, The Client (Myown) asks for some information or to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I want to extend the Apache Server. In My Model, The Client (Myown) asks for some information or to do some action in the Server Machine. The Server on reciept of the data (Action and Parameters to that Action Procedure) carries out the action. The above i can do in CGI Script and it is working. I am told u can extend Httpd using some shared lib. ie. When That Lib Name and function is referred, The function is called. (or some thing like that). Also i wanted to know if we can call any C Lib, in Script. ie Script Calling a Function. How to do that ? I dont know if writing script is correct or writing a DSO module is correct. Kindly, Advice which one is suitable in my case. Gone through some of the material avl in writing DSO (module) in web There are not many sample examples. Kindly let me know if there are any if u come / came across. How to make Apache know my function name so, that it calls my function in the shared lib. Please Help Thanking You, Regards, Mitra |
|
|||
|
mitra wrote:
> Hi, > I want to extend the Apache Server. > > In My Model, The Client (Myown) asks for some information or to do some > action in the Server Machine. The Server on reciept of the data (Action > and Parameters to that Action Procedure) carries out the action. > > The above i can do in CGI Script and it is working. Aha. OK. > I am told u can extend Httpd using some shared lib. Why, on Earth? > ie. When That Lib Name and function is referred, The function is called. > (or some thing like that). That looks like some processor, like PHP. > Also i wanted to know if we can call any C Lib, in Script. > ie Script Calling a Function. How to do that ? "CGI script" is a misleading name. "CGI script" can be ANY executable file on your system - BASH, PERL, or C compiled program (not to mention Tcl, Python, Ruby and others). So, write a C program that fullfils CGI contract (ENV=parameters/STDIN=request_body/STDOUT=response) and you can call any C function in any library you're linked with. > I dont know if writing script is correct or writing a DSO module is correct. > Kindly, Advice which one is suitable in my case. DSO modules are heavy artillery. Use them only for highly standardized tasks, that you're absolutely clear about. Your current persuit is not one of them. > Gone through some of the material avl in writing DSO (module) in web > There are not many sample examples. Kindly let me know if there are any > if u come / came across. Again, writing DSOs is for "professionals", when you have a real need for it. Your needs can easily be satisified with simple CGI. Nix. |
| Thread Tools | |
| Display Modes | |
|
|