I am trying to launch gphoto2 on Windows 7 using PHP script (WAMP webserver).
$result = shell_exec ('d: & cd D:\WebServers\home\localhost\www\win\gphoto2 & set CAMLIBS=camlibs & set IOLIBS=iolibs & gphoto2.exe --list-ports'); echo $result;
This PHP script returns an empty result:
Devices found: 0 Path Description --------------------------------------------------------------
But if I write this code in native Windows CMD environment, result is such as expected:
Devices found: 2 Path Description -------------------------------------------------------------- ptpip: PTP/IP Connection usb: Universal Serial Bus
What am I doing wrong? Many thanks!
it is hard to say. at least ptpip should be printed, even if there are no usb permissions.
is the camlibs and iolibs accessible by the webserver?
can you run with --debug and see if it sees the iolibs?