Apache and DSO Basics Doubt

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-28-2004
mitra
 
Posts: n/a
Default Apache and DSO Basics Doubt

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
  #2 (permalink)  
Old 06-29-2004
Nikola Milutinovic
 
Posts: n/a
Default Re: Apache and DSO Basics Doubt

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0