background preloader

Server / Administration

Facebook Twitter

Grafik

The Rootkit Hunter project. Chkrootkit -- locally checks for signs of a rootkit. [MySQL] Erster Buchstabe groß rest klein. PHP Umkreissuche mit MySQL. How To Display PHP Errors In My Script Code When Display_errors Is Disabled. This page will help you troubleshoot on how you can display or show your php errors when you are debugin your code with a simple configuration in your web server Author: bigger_travis20 Comments maintiaing a website if very difficutl. there are always people who will abuse spamming comments for many different websites. when i started my website, i used to have a guest comments page, but then i would see so many spam. i use thi php function to detect some spam., there were times when i need to debug my script by showing the errors on my website.. web servers now a day have display_errors off by default, you can fun phpinfo() if you dont know how your server is setup.. or you can view it in your php configuration file called php.ini.. this is how the php.ini file would look like: ; Print out errors (as a part of the output).

For production web sites,; you're strongly encouraged to turn this feature off, and use error logging; instead (see below). Copy and paste this code i hope this helps. Wo ungefähr ist eine IP Adresse beheimatet? GeoIP in PHP. Manchmal möchte man wissen aus welchem Land oder welcher Region eine IP-Adresse kommt, und dafür gibt es bereits Lösungen die leicht zu benutzen sind. Als erstes schauen wir uns die Geo-IP-Datenbank von MaxMind an, die wir mit der PEAR-Klasse Net_GeoIP ansprechen. Wer nur das Land braucht der sollte sich die kostenlose GeoLite Country Datenbank anschauen, wenn die Stadt bzw. die Region benötigt wird wirft man einen Blick auf die GeoLite City Datenbank. Von beiden gibt es auch noch kostenpflichtige Versionen, die genauer und aktueller sind. Das erste Beispiel zeigt die Verwendung der Länder-Datenbank: Die Ausgabe in diesem Fall sieht so aus: Für die zweite Variante mit der City-Datenbank sieht das Script recht ähnlich aus: Die Ausgabe: Des weiteren gibt es noch eine Region-Datenbank und eine Organisation/ISP-Datenbank, die mit den entsprechenden Methoden lookupRegion() und lookupOrg() in Net_GeoIP ausgelesen werden können.

Leave a Reply. Htpasswd Generator - Create a htpasswd password. PHP open_basedir (local) setting overwritten for vhosts.