Remote call sonar-scanner prompt error “sonar-scanner: command not found”

I have used full path but it tells me that /full/path/sonar-scanner is a directory

after that,I install sonar-scanner and php program on the same server,in php api,I used ‘system(“sonar-scanner -v”)’,it also dose not work.

whether sonar-scanner cannot be used in http api