The thai consulate in Phnom Penh is now on the eVisa system so you go to Cambodia, apply online
BUT
Pakistani passports are on the "special processing" country and it take up to FOUR WEEKS for the tourist visa to be approved
********************************************************************************************************************