Your friends should mark the program as executable by giving it the "execute" permission. When you upload a file to a server on the Internet all of its attributes like permissions and timestamps are lost.
Another option is uploading the file packed in an archive format that does save attributes. One such option is
tar. To create a compressed tar file containing
program you can use:
tar czf program.tar.gz program