I\'m building a PHP RESTful API, following this tutorial. The following function, which should return the data sent with the request when the \'put\' method is used, returns
I see the problem,
You need to add filename.php in the end of the request url or need to rewrite the server rules in .htaccess file to get around this.
curl -i -X PUT -d '{"address":"Sunset Boulevard"}' http://localhost/clients/ryan/{filename.php}
replace {filename.php} with appropriate file name. :)