4

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.)

Jellicle
  • 2,244
  • 4
  • 26
  • 31
  • 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.... – Jellicle Mar 26 '13 at 22:34
  • 1
    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: http://php.net/manual/en/features.commandline.interactive.php – Matthew Mar 27 '13 at 16:02
  • 3
    I'm having the same problem except on Linux. – reor Nov 05 '15 at 22:35

0 Answers0