Old 18th February 2012, 10:38
matej matej is offline
Join Date: May 2006
Posts: 60
Thanks: 6
Thanked 0 Times in 0 Posts
Default php stdin problem

I have quite old server (mandriva "perfect setup", ispconfig 2.0, php version 5.2.5) and I have problem with php (reading from stdin). If I put simple script
 echo "Are you sure you want to do this?  Type 'yes' to continue: ";
 $handle = fopen ("php://stdin","r");
 $line = fgets($handle);
 if(trim($line) != 'yes'){
         echo "ABORTING!\n";
 echo "\n";
 echo "Thank you, continuing...\n";
and execute it through console, I get error:
PHP Warning: fopen(php://stdin): failed to open stream: No such file or directory

I have same php.ini on "similar" server where this works without problem.

Thanks for any idea/hint.

Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu and nginx delgado2061 Installation/Configuration 0 27th November 2011 23:36
Centos 6.0 support Acid_Scorpion Developers' Forum 47 16th September 2011 10:36
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 13:58
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 13th March 2006 23:58

All times are GMT +2. The time now is 21:00.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.