Hot answers tagged

2

PHP doesn't always run as root (and generally shouldn't). Many servers will use suPHP, "a tool for executing PHP scripts with the permissions of their owners". There's also PHP-FPM which allows you to "start workers with different uid/gid/chroot/environment and different php.ini". Each hosting provider may use a different setup, so if you're concerned what ...


2

Sign up for a api key it's free. And use the following code example. https://github.com/google/recaptcha/tree/master/examples


1

I was in a trouble last few days since my web host was hacked for POST on PHP files. I've been dealing with files with .png extension that have PHP code inside. This is why error checking should be implemented in your upload script, that way, you can test the uploaded file to ensure the data is valid and if the data is not valid, then discard the file ...


1

Sure you can do this in Drupal using the Rules module ... Here is an example of such rule for Drupal version 7, in what is called Rules "export format": { "rules_redirect_selected_roles_to_selected_term_pages" : { "LABEL" : "Redirect selected roles to selected term pages", "PLUGIN" : "reaction rule", "ACTIVE" : false, "OWNER" : "rules", ...



Only top voted, non community-wiki answers of a minimum length are eligible