I’ve set up a RewriteMap using prg which calls a php script, like this: And then .htaccess puts the output in an env variable MAPTO like this: It works correctly over HTTP, but over HTTPS no input is returned. I’m using Apache 2.4, PHP 7.2 and have confirmed that OpenSSL is installed. What could b…
Tag: stdin
PHP: Adding Arrow Key Support to STDIN/Single Character Processing
In PHP, I can read in input from a command line program with the following code This works well for simple input. However, if I try to use something like an back arrow key, my shell looks like the following i.e., the arrow key escape sequence of ^[[D is sent to the shell. PHP itself will interpret the arrow k…