Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 18:55 Go to next message
m3butler is currently offline m3butlerFriend
Messages: 1
Registered: December 2011
Junior Member
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] Sun, 18 December 2011 01:32 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 359
Registered: July 2009
Location: Japan
Senior Member
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 Dec 20 11:42:27 GMT 2014

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

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