4 ms·
Some scripts also detect this and are written so that there is no code executed before the file is not complete. Of course, that's a minority.
by LeonidasXIV 12y ago
Some scripts also detect this and are written so that there is no code executed before the file is not complete. Of course, that's a minority.
- michaelmior 12y agoDefinitely including a checksum and validating that before executing would be ideal.
- dTal 12y agoTo elaborate, this is quite easy: you wrap the entire contents of the script into a function definition, then call the function as the last line.