Error writing the value’s new contents (Windows Registry Editor)

I got this error when trying to change some configuration settings for my anti-virus (TrendMicro WFBS on Windows Server 2003)
‘Cannot edit LocalServerPort:
Error writing the value’s new contents’
As usual, when something I don’t like happens on my computer or on other parts of my life, I ask my friend Google about it, the suggested solutions were [...]

Get current URL in PHP

Here is a function for getting the URL of the page being processed in PHP, the function accepts one optional parameter $ignore_port_80 (boolean) to tell it whether it should ignore the port part of the url if the port used is 80:

# Prototype
# string get_current_url([boolean $ignore_port_80])

# Function
function get_current_url($ignore_port_80 = true) {
$is_https = $_SERVER['HTTPS'] [...]

vsftpd: 500 OOPS: unrecognised variable in config file

Question
When I start vsftpd on my CentOs machine I get this error:
Starting vsftpd for vsftpd: 500 OOPS: unrecognised variable in config file:  anonymous_enable
How can I fix it?
Answer
The option “anonymous_enable” is a valid vsftpd option, but as you can see on the error message, there is an extra white space before the variable definition, I suspect that [...]

MySQL statement terminators

There is the semicolon “;” that every one knows, and “\g” which is just the same:
mysql > SELECT * FROM wp_links;
mysql > SELECT * FROM wp_links\g
Those are exactly the same, and will produce the same result, here is an example:
mysql> select * from wp_links \g
+———+———————–+————–+————+————-+—————+——————+————–+————+————-+———————+———-+————+———————–+
| link_id | link_url [...]

How to modify PHP include_path… Different approaches

What is PHP include_path?
include_path is a PHP core directive, it stores a directory path or a directories paths  list separated by colons “:” on Unix and MAC platforms or by semicolons “;” on Windows platforms.

When you use include(), include_once(), require(), require_once(), fopen(), file(), readfile() or file_get_contents() to load a file (let’s say my_file.inc.php), PHP will [...]

Install Symfony Without PEAR

A lot of web hosts have limited or nonexistent support for PEAR, the pear command will throw errors on most commands or not work at all, in order to install Symfony on such hosts you will need to download the Symfony package, copy Symfony files to your home directory and make them easily accessible from [...]

Firefox crashes: How to detect bogus extensions

Mozilla Crash Reporter

Today, whenever I used the built in Firefox search function and as soon as I typed the first letter of my phrase, Firefox suddenly crashed and displayed the well known Mozilla Crash Reporter window (image below).

Sending a crash report to complain about my issue won’t help me (specially), and won’t help Mozilla people too much, [...]

Detect WordPress version

WordPress version

How can I detect the current WordPress version?
Log in to your admin Dashboard and scroll to the bottom of the page, you’ll find your version number on the rightmost spot of the footer.

Or you can view the source of one of the pages of your blog and look for the meta generator tag:
<meta name=”generator” content=”WordPress [...]

WordPress upgrade error (Allowed memory size of 33554432 bytes exhausted)

The problem
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2516315 bytes) in /home/mydomain/public_html/blog/wp-includes/http.php on line 1370
This can happen at any line and with any file, not only http.php at line 1370!
Explanation
Don’t worry if you get this error, there is nothing wrong with your server or hosting plan etc. Whenever a new [...]

Opera: CSS rotation and other transformations

After the release of Opera 10.5 Alpha, it’s now be possible to rotate elements, this new release includes support for CSS3 rotation and other transitions and transforms, we may not longer need JavaScript for some basic transformations, have a taste:

Download Opera 10.5 Alpha
See the demonstration

The demonstration doesn’t show rotation, so the CSS for rotation under [...]