Click to See Complete Forum and Search --> : readline support in php


Anon
07-28-2001, 01:03 PM
Does anybody know how to compile readline support to php 4.0.6.

i tried --with-readline but this did not find readline.h

when i use --with-readline=/dir/to/readline it finds everything, but i get trouble when running make. there comes lots of "undefined reference to xxx" messages.

how to make use of readline files under ext/readline which comes with php-package?

i'm planning to cut perl totaly and switch over to php because of the "fast development time".

so far i have used following to get user input:

function myRead() {
$fp=fopen("/dev/stdin", "r");
$input=fgets($fp, 255);
fclose($fp);
return $input;
}

but this really sucks compared to readline