Rev 511 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 511 | Rev 557 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/usr/bin/php |
1 | #!/usr/bin/env php |
2 | <?php |
2 | <?php |
3 | 3 | ||
4 | /* |
4 | /* |
5 | * OIDplus 2.0 |
5 | * OIDplus 2.0 |
6 | * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft |
6 | * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft |
Line 46... | Line 46... | ||
46 | 46 | ||
47 | if (preg_match('@#!(.+)\s@U', $headline, $m)) { |
47 | if (preg_match('@#!(.+)\s@U', $headline, $m)) { |
48 | $interpreter = $m[1]; |
48 | $interpreter = $m[1]; |
49 | 49 | ||
50 | switch ($interpreter) { |
50 | switch ($interpreter) { |
- | 51 | case '/usr/bin/env php': |
|
51 | case '/usr/bin/php': |
52 | case '/usr/bin/php': |
52 | $scripttype = 'PHP'; |
53 | $scripttype = 'PHP'; |
53 | break; |
54 | break; |
- | 55 | case '/usr/bin/env perl': |
|
54 | case '/usr/bin/perl': |
56 | case '/usr/bin/perl': |
55 | $scripttype = 'Perl'; |
57 | $scripttype = 'Perl'; |
56 | break; |
58 | break; |
57 | } |
59 | } |
58 | } else if (strpos($filename, '.php') !== false) { |
60 | } else if (strpos($filename, '.php') !== false) { |