How to identify an aps package is installing from windows/Linux server.

By | May 11, 2014

Through code we can identify the package is installing from windows/linux server using the following scripts

if (stristr(PHP_OS, ‘win’) && !stristr(PHP_OS, ‘darwin’)) {

// this is Windows

} else {

// Unix

}

using the above code we can identify installation is doing from windows or Linux