in reply to Re: Exec format error
in thread Exec format error

Yes, the "--" on the shebang line is a nice trick to deal with potential trailing \rs.

It isn't going to help here though, as the problem isn't that the script itself doesn't run, but rather that the webserver is also trying to execute another (non-script) file "test.html" in the same directory - which is just a webserver configuration issue.