O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PUT Method Requests

The PUT method is an HTTP request for a file to be placed on the remote server. It's like a file upload that doesn't come from a form and tells you where to place the file in your document tree. You might guess that this is a very dangerous thing to allow for anonymous users. It's especially dangerous when users could be uploading PHP scripts.

Not all browsers support PUT requests, and neither do all servers. Netscape Composer and the W3C's Amaya browsers reportedly allow PUT requests. Apache for UNIX will accept them if configured to do so. To configure Apache to allow PUT requests, you use the Script directive inside a configuration file. See the Apache site for more information <http://www.apache. org/docs/mod/mod_actions.html#script ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required