I try to install Paypal SDK (PHP version), when I run the install.php file, an error was thrown:
Code:
Use of undefined constant STDIN - assumed 'STDIN' in /root/php-sdk/install.php on line 44
PHP Warning: fgets(): supplied argument is not a valid stream resource in /root/php-sdk/install.php on line 44
The 44th line content is:
Code:
$confirm = strtolower(substr(trim(fgets(STDIN)), 0, 1));
So I think my problem is the STDIN constant of my linux system is missing. How can I install it to my system ? Please help me, thanks very much.
p/s: I use PHP 4.3.10. My system is Fedora Core 2.