Reverting a commit in svn

If you want to revert your commit use below command svn merge -r [current_version]:[previous_version] [repository_url] svn commit -m “Reverting bad commit. [previous_version]”

Detecting OS in PHP

Simply echo PHP_OS; It will print: For Mac: Darwin For Windows Visat: WinNT For Ubuntu: Linux Also if you want to know OS details about users accessing your site, you…