Menu

#137 gphoto2 on Windows with WAMP

None
open
None
5
2016-05-12
2016-05-09
No

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!

Discussion

  • Marcus Meissner

    Marcus Meissner - 2016-05-12
    • assigned_to: Marcus Meissner
    • Group: -->
     
  • Marcus Meissner

    Marcus Meissner - 2016-05-12

    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?

     

Log in to post a comment.