To get these functions to work, you have to compile the CGI or CLI version of PHP with --with-ncurses[=DIR]. For more informations please read the php documentation.