A hash-bang, usually written ‘#!’, is the traditional beginning of shell scripts on Unix based platforms.
The text following these two characters denotes the interpreter that the script should be executed though.
#!/bin/bash ... Some scripting here ...
indicates that the script should be run under Bash. Likewise ‘/usr/share/php’ for PHP, ‘/usr/share/python’ for Python and so on.