Category: Backend / PHP / Database


No matter if you decide to for <?php session_start(); $_SESSION[’UniqueRandomTemporaryID’] = ‚h0ss5qul55mpev38uaduca31c0‘; # or $_COOKIE[’UniqueRandomTemporaryID’] = ‚h0ss5qul55mpev38uaduca31c0‘; ?> it will set a cookie this way or another. Cookies are sent by the server to the browser and only the domain […]


  ( ! ) Parse error: syntax error, unexpected ‚::‘ (T_PAAMAYIM_NEKUDOTAYIM), expecting ‚&‘ or variable (T_VARIABLE) in /some/code.php on line 1321 „T_PAAMAYIM_NEKUDOTAYIM“ Its Hebrew for „double colon„. Did you know that ZEND (PHP) is a israeli company? onyourlinuxcommandline# php-cgi […]


From a flexibility point of View: This is totally correct. But what from a RAM point of view. Why have every .php script instanciate a new version of class config.php? I created an easy small class: class Config {   […]


get in a bash shell: php -m; # list all currently activated and installed extensions [PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom ereg exif fileinfo filter ftp gd gettext hash iconv imap intl json libxml mbstring […]


Fast summary: PHP + easy learning, probably better for fast prototypes/small projects – grown language, not coding standards enforced = bad for large projects (upgrade project from PHP4->5 is ugly) Ruby – hard to learn and understand (need to understand full […]

23.01.2015 MongoDB (from „humongous“) is a cross-platform document-oriented database. Classified as a NoSQL database, MongoDB eschews the traditional table-based relational databasestructure in favor of JSON-like documents with dynamic schemas (MongoDB calls the format BSON), making the integration of data in […]


file: ClassUser.php <?php include("ExampleClass.php"); $class_instance = new ExampleClass(); $class_instance->setExample("example sucks"); echo($class_instance->getExample()); $class_instance->NewProperty = "You just created a new propertey of the class, that is not defined per default"; $class_instance->AnotherProperty = "You just created a new propertey of the class, that […]


… on a debian/ubuntu system… sometimes you need to know (when setting up PDT Eclipse and XDebug) where you php binary is. i found mine via: find / -name php|grep cgi /usr/lib/cgi-bin/php /etc/php5/cgi/php.ini


was taken from some pretty old heise c’t script. // Prüfe, ob die Empfänger/Absenderadresse einem gültigen MX-Host angehört Zu jeder Domain in einer Mailadresse (nach dem @-Zeichen) sollte ein Mail Exchange Resource Record (MX-RR) im Domain Name System (DNS) eingetragen sein. Die […]


global and permanent: activate logging to file and html output: vim /etc/php5/cgi/php.ini # open up your default configuration file, how to find the default config check here ; check that these options are On error_reporting = E_ALL & ~E_DEPRECATED & […]


es klingt wie ein schlechter witz….. es ist nicht (!) trivial, eine datenbank zu durchsuchen. es ist einfacher, das backup.sql einer datenbank in einem Programm ihrer wahl (Browser?, text editor?) zu öffnen und nach dem gesuchten string zu suchen. credits: komischerweise […]