I have a C++ binary compiled using VC++2008, this code uses my GPU (NVIDIA GT 8600) for some calculations. The program first checks for the graphics card vendor using the glGetString(GPU_VENDOR) function in openGL.
When I run this program from the command line it works without any problems. But if I execute the same command through PHP, using WAMP, it does not detect my vendor as NVIDIA and instead returns 'Microsoft Corporation' and exits saying my hardware does not support the GPU related functions I'm using. I'm not able to understand the difference in executing a command through WAMP instead of directly from command line. Why should only the former one fail?
It works even if i execute the php code directly from command line. This suggests that something's going wrong in WAMP. If anyone has any ideas at all, it would be of great help if you could post them here.