To get these functions to work, you have to compile the CGI or CLI version of PHP with --with-ncurses[=DIR].