INFO: Update php code for mac environment
Added a bunch of shit