ChaosKnight Posted April 17, 2010 Share Posted April 17, 2010 Hi, I have read that PHP doesn't by default have the Put and Delete requests, is this so? The reason why I want to use this is because I used Rails for a while now, and I learned that it's better to use delete rather than a post request. Is this necessary in PHP? I don't want search engine bots to execute the code to delete a database entry... Thanks I appreciate your help! Quote Link to comment https://forums.phpfreaks.com/topic/198830-delete-and-put/ Share on other sites More sharing options...
oni-kun Posted April 17, 2010 Share Posted April 17, 2010 Not by any predefined behaviour, PHP is much different in default infrastructure and goal than ROR. Quote Link to comment https://forums.phpfreaks.com/topic/198830-delete-and-put/#findComment-1043611 Share on other sites More sharing options...
ChaosKnight Posted April 17, 2010 Author Share Posted April 17, 2010 So it's safe to just throw in a normal link to execute sql code to delete an entry? Quote Link to comment https://forums.phpfreaks.com/topic/198830-delete-and-put/#findComment-1043613 Share on other sites More sharing options...
oni-kun Posted April 17, 2010 Share Posted April 17, 2010 As long as you authenticate the user to. Quote Link to comment https://forums.phpfreaks.com/topic/198830-delete-and-put/#findComment-1043615 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.