Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » Reading php://stdin from within eclipse
Reading php://stdin from within eclipse [message #766424] Thu, 15 December 2011 13:55 Go to next message
Eclipse UserFriend
Hi, is there any way to read from the php://stdin stream when running a PHP script (as a script, not a web page) from within eclipse PDT? I want to do something like this
<?php
echo "Enter some text to have it echoed back: ";
$response=fgets(fopen('php://stdin','r'));
echo "You typed: $response";
?>

but it only runs the first echo and then gets stuck waiting for the input. How do I enter input from the keyboard?
Re: Reading php://stdin from within eclipse [message #767441 is a reply to message #766424] Sat, 17 December 2011 20:32 Go to previous message
Eclipse UserFriend
Uncheck "Display debug information..." in your Run Configuration.
or
Use Xdebug.
Previous Topic:CakePHP 2.0.4 with Eclipse Indigo
Next Topic:Checking out multiple SVN locations to single project
Goto Forum:
  


Current Time: Sat Jul 05 02:16:21 EDT 2025

Powered by FUDForum. Page generated in 0.03598 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top