magics by php