PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Well i was reading some stuff concerning AJAX and PHP using REST and they were talking about using a "DELETE" HTTP method that you can use with a REST API...but im not understanding the process if you use PHP with REST
DELETE and PUT are handled by apache - just like GET and POST are.
When you try to GET or POST to a resource (file) that apache identifies as "php parsable" apache will then invoke PHP to handle the request on it's behalf. You ca still DELETE or PUT a resource using just apache, but I doubt it woul have a reason to invoke PHP.
Kieran Huggins wrote:DELETE and PUT are handled by apache - just like GET and POST are.
When you try to GET or POST to a resource (file) that apache identifies as "php parsable" apache will then invoke PHP to handle the request on it's behalf. You ca still DELETE or PUT a resource using just apache, but I doubt it woul have a reason to invoke PHP.
Let's say you have a script /test.php
Now this script is called by a browser because the user as clicked a link <a href="/test.php?param1=value1">
The request header contains