1) php does not make ajax requests. php runs on the server side; javascript is executed on the client side, and it is js that makes ajax requests to the server.
2) js does not allow you to make ajax requests to a different host than the one from which the current page was received.
7stud source share