Run .exe from the apache server

0

Good morning,

I have an application which when clicking a button should open my computer's scanner, to start a scan, but I have several problems:

  • PHP does not allow to connect from the server to the local computer (or if someone knows some way I would appreciate it and share the information).

  • I made a program in console with c # that I initialized the scanner, that .exe I uploaded it to the apache server .. but when trying to start it tells me:

  • Array ( [0] => exec_scanner.exe: exec_scanner.exe: cannot execute binary file )

    If someone knows how to collaborate, I would appreciate it.

        
    asked by Andres Galeano 17.01.2017 в 16:37
    source

    3 answers

    0

    Good morning guys.

    I appreciate your help but none of the suggestions could apply it.

    I did it in the following way: URL protocol, and it was something similar to Skype to make calls. Skype: nameskype? Call but in this case it would be projectName: When putting this from the web application it works, although it must have a program that installs those protocols on the computer of the person who will use x function of the system that requires to connect to the computer, in my case I did it by c # creating the regedit automatically, I leave PD help link everything is done from the HKEY_CLASSS_ROOT:

    Link Url Protocol - > steps

        
    answered by 25.01.2017 / 14:02
    source
    0

    Good morning.

    If what you have is a web application in a cloud hosting, it is not possible to access your scanner since it is not hosted on the same server.

    In the same way when executing the .exe it will not find the device in question.

    It would be more feasible for your users to make an updload of the files you want to store.

        
    answered by 17.01.2017 в 16:58
    0

    A web application on a server outside the local network for security does not have access to the peripherals of the client computers but only to the web context in which they are executed, for your case I suggest limiting to the field of uploading images.

        
    answered by 17.01.2017 в 17:32