Newbie (PHP). Trying to call a C++ executable (a.out) from php. but unable to do so. Can run the a.out script in terminal as shown in pic here. Using netbeans and mac.
My PHP Code:

My Terminal Output:

My Code output:

My C++ Source File:

Output after using escapeshellargument:

My PHP Version:

Read Permissions for the file :

echo getcwd();show?