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

Best Practices Question


What is a better route to go?

 

  1. Have a handler in Apache call a package directly using a handler() – having the module itself parse out arguments passed in and loading configuration files based on argument values.
  2. Build a script in /cgi-bin/ that uses mod_perl2, parses passed in arguments, loads configuration files, and then creates a new instance of the module mentioned in option 1, and then calls a “run()” in the module that performs all the real work.

 

Is using new() under mod_perl2 inefficient at all that it would be best to not use it when not necessary?

 

Thanks!

 


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.