Recent Posts
Autarchy of the Private Cave
Return To Blog Listing
This is a personal blog used to make notes on what I am doing. What I do, usually concerns or is related to science (bioinformatics), society (general issues), some bits of programming (PHP), etc.
Recent Posts Tagged With php
-
fail2ban and Google translate: how to easily cut your WP blog traffic
fail2ban has a php-url-fopen rule. WordPress has a Global Translator plugin, which – among others – uses Google Translate service. If someone uses Google Translate (e.g. using Global Translate’s mini-language-flags), and goes back t...
-
Configuring web-server: for production and for development
Production: see http://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-debian-etch – it is for Debian Etch (which is old-stable), but many of the steps apply equally well to Debian Lenny (current-stable). Also, this is a ver...
-
Debugging PHP: Eclipse PDT + XDebug + XDebug helper
Stimulated by a bug in a complex and unfamiliar web PHP application with heaps of custom tweaks by other programmers, I decided to try a more professional approach to PHP programming and debugging than the standard var_dump() and family. As a result,...
-
WordPress and Google Analytics external nofollow problem in comment links
Since some WP release, the comment author's link in comments is broken - it has ' external nofollow' attached straight to the href attribute (which breaks the link). I assume that the problem is caused by Google Analytics, namely the "track outgoing ...
-
ExpressionEngine contact form (email module) spam vulnerability
Yesterday I had a look at mod.email.php - the Email module of ExpressionEngine CMS. It appears that it is very easy to use ExpressionEngine’s contact form (which uses Email module) to send emails to arbitrary addresses - simply put, send spam u...
-
Less than an hour of GoDaddy MySQL5 database downtime today
Must have been some maintenance, as I didn’t notice any changes in PHP/MySQL versions since the 7th of March....
-
Instructions on installing libmp3lame-enabled ffmpeg on shared linux hosting
Note: this post is based on the comment by Simon, who generously shared his experience. Step-by-step: Download the compiled ffmpeg with libmp3lame support (direct download links: older version ffmpeg.with.lame and newer version ffmpeg.2007-10-28.wit...
-
Convert MySQL database from one encoding/collation into another
Most frequent use: convert database from latin1_swedish to utf8_general_ci. Script copy-pasted from: MySQL and UTF-8. Here’s the script itself: (to copy-paste: first click the “Plain text” header; in FF2, RightClick->”Select a...
-
PHP proxy
PHP proxy is simple but good. I converted it into a proxy-function for one of my projects. Do pay attention to the comments, especially these two: I had issues with this script (and others) returning 0 for the bytesTotal in flash. Basically, the Con...
-
How to convert between utf8 and cp-1251 without iconv or mbstring
This helped me, maybe it will help you: How to convert between utf8 and cp1251 without iconv In case the original disappears, here's a "backup": PLAIN TEXT PHP: function cp1251_to_utf8($s){ $c209 = chr(209);...
