New answers tagged

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 ...


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

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", ...


0

My approach involves two passes: Filter only web browsers and consoles by matching the start of the user agent string with Mozilla|Opera|PSP|Bunjalloo|wii. Thanks to the user agent spoofing this check will detect almost all browsers Exclude bots by common stop strings bot|crawl|slurp|spider So if the first step is passed we assume that it is a browser ...


0

Based on the error message alone, I would suggest to ensure all files in your app are within the folder you're allowed to place data in. then if possible, use absolute paths when referencing files. For example, Assume your site layout is as follows: In your document root folder you have Folder named Scripts, and a script named index.php In the Scripts ...


0

Google does not include sites in its index that are not available 24 hours a day. If your website is going to be offline for a good portion of the day, search engines are not going to index it. It might be possible for your hosting plan to put up that error message. To do so, it would need to change the DNS entry to point your website to a different ...


0

What solved this issue for me was to search and purge every php-related package (now also including php-gettext and so on). After reinstalling the packets libapache2-mod-php5 php5 php5-mysql php-gettext php5-mcrypt php5-readline php5-gd php5-json and finally phpmyadmin, I could access phpmyadmin again, restore my website configurations and everything seems ...


2

having a static image's url / path would help your image to appear in image search results. without having an image url it can't be cached properly. yes, i would strongly recommend to use images like images, making use of real image files and implement them with img src alt + title or css.



Top 50 recent answers are included