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! 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. 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? 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. Link to comment https://forums.phpfreaks.com/topic/198830-delete-and-put/#findComment-1043615 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.