Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running Windows 7. I just downloaded the "binaries and source" distribution of Php 5.4.6.

When I unzip the download and navigate into the directory and enter the command php.exe -a on my command line, the interactive mode appears to load but doesn't respond to my commands.

The console responds with the message Interactive mode enabled, followed by a blank line, but no php > prompt. If I enter a command like echo "foo";, the text I write appears, but the system does nothing with it.

What am I doing wrong? (I tried compiling the sources myself on msys, but got the complaint: configure: error: xml2-config not found. Please check your libxml2 installation. There has got to be an easier way.)

share|improve this question
Did you ever find a solution to this? I'm having the same problem using php bundled with xampp on Win7 x64 – Matthew Mar 26 '13 at 19:56
I never did.... – JellicleCat Mar 26 '13 at 22:34
I did some digging for anyone else who winds up here. The Windows php binary is missing the readline library so it can't accept interactive input. Search for "windows" with ctrl+f on the following page to see a bunch of discussion about it: – Matthew Mar 27 '13 at 16:02
I'm having the same problem except on Linux. – reor Nov 5 '15 at 22:35

You must log in to answer this question.

Browse other questions tagged .