13th March 2023 $uname = php_uname('s'); if (stripos($uname, 'win') === 0) { // Platform is Windows. } else if (stripos($uname, 'darwin') === 0) { // Platform is OSx. } else if (stripos($uname, 'linux') === 0) { // Platform is Linux. } PHP Add new comment You must have JavaScript enabled to use this form. Your name Email The content of this field is kept private and will not be shown publicly. Comment Leave this field blank
Add new comment