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. […]
to be very honest… apache is a (complicated) monster… nginx setup also seems to me pretty complicated. if you don’t need .htaccess support and want a simple to configure and fast webserver… you should have a look a lighttpd. the […]
if the user has only (S)FTP access to the webserver: download the file.php that throws errors open it up in an text-editor place this right after <?php <?php # place this right at the start of the file.php that needs […]
create a new file in your web root lighttpd / apache: vim /var/www/info.php with the content: <?php phpinfo(); ?> access your webserver with your browser http://192.168.1.222/info.php you should get something like this: Loaded Configuration File /etc/php5/cgi/php.ini
… one of the many things i hate: UPDATES! Because: Never change a running system… and if you do have to, make proper backups and test restore of backup. twitter has no backups. they dropped v1.0 completely, maybe someone can […]
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 […]