
Diogo Souza da Silva - 2009-03-21 02:34:16 -
In reply to message 1 from Jamie Tatum
Thank you for your feedback!
Just added an example, with lot more features explained and the htaccess (just add the "."). Also included the <?php in the scripts it was missing.
Just a note about the .htaccess configuration: It will actually send the request URL to a $_GET var, depends on your application directory level(too deep) it may not work well.
Best case is first level (root), as http://website.com/my/url , the RestServer will get the "my/url". If its in second directory, as Throw a Bottle, like http://website.com/REST/my/url , RestServer will get "REST/my/url" as RequestURI.
In this .htaccess the URL ("my/url") is going in the $_GET["q"] var, so to RestServer treat this if not in root, use new RestServer($_GET["q"]).
Hope I did not make it a mess and harder to understand.