Web App: Detect Node/PHP version
Closed this issue · 1 comments
KTanAug21 commented
- Detect PHP and Node versions
Origin( Launch-c ): https://flyio.slab.com/posts/discussion-on-artisan-command-1p074z7a
PHP Version:
I think the scanner doesn't attempt to find the Node version, just PHP. The code is seen here:
https://github.com/superfly/flyctl/blob/master/scanner/laravel.go#L70
Basically it runs php -v
and runs some regex against the response to find the version. The regex: PHP ([0-9]+\.[0-9]+)\.[0-9]
.
Example of doing that in PHP is here: https://www.phpliveregex.com/p/ICS
KTanAug21 commented
- Detect PHP versions