Tag: php


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 […]


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 […]


… 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. [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. […]


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


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 […]