Tag: php

20.01.2015

interesting example, for comparison (e.g. in TextWrangler (OSX)): procedural: [cc lang=”php” escaped=”true” width=”500″] ‘Tom’, ‘job’ => ‘Button-Pusher’, ‘age’ => 34 ); $person2 = array( ‘name’ => ‘John’, ‘job’ => ‘Lever-Puller’, ‘age’ => 41 ); // Output the starting values for […]

20.01.2015

when the simple viewing of an EMail leads to Virus execution encrypting your holiday-pictures or music-collection… then there is something to learn: nothing man-made is 100% perfect/secure especially not when it’s something as complicated as software… or the financial-system. so […]

09.04.2014

… 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

20.03.2014

was taken from some pretty old heise c’t script. [cc lang=”php” escaped=”true” width=”500″] // 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. […]

07.02.2013

Sebastian Krebs pointed out you can get the filename minus extension like this… basename(__FILE__, ‘.php’); example: this is executed in filename.php -> you get: filename

10.07.2012

PLEASE WATCH IN HD! SOOO BLURRY IN 360p or download with jdownloader 2 beta in 720p or minitube (very cool app) su; # become super user/root aptitude update; # update packet definitions aptitude install lighttpd php5-cgi mysql-server mysql-client phpmyadmin php5-mysql […]