PHP Script to perform Reverse Proxy Functionality