Hi

I have a problem with apache 2 during startup of an extension in the function: ZEND_MINIT_FUNCTION(my_module_name)

I want to prompt the user for a password and read that information.
This works just fine in apache 1.3.xx with php 3.x, php 4.x or php 5.x. under various OS's such as freebsd and linux.

The function goes something like this:

  printf("Please enter the password: ");
  scanf("%256s", passwd);
  /* run some checks on the passwd etc. etc. */

Under apache 2 the prompt is never shown - apache simply doesn't show this during startup.

I have however never come close to a solution and have tried looking at the apache APR in order to get a hook into the system, but without success.

Oh, I _can_ make it work by hardcoding the passwords or expose the passwords to the environment - however this is in my case security-wise not really an option in a production environment.

Any ideas would be appreciated.

Regards

Martin Bøjer

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to