Archive for January, 2008

Coming Soon: WordPress 2.5

Posted by Johan Cyprich on 31 Jan 2008 | Tagged as: Applications

The WordPress team is planning on releasing version 2.5 of their blogging software in March. What happened to 2.4? That version was supposed to be released on January 24, but they weren’t able to finish all of the features they set out to. So, they decided to skip 2.4 and release 2.5 with all of [...]

Using Deprecated Code in PHP 5

Posted by Johan Cyprich on 30 Jan 2008 | Tagged as: Programming

If you don’t have the time or inclination to update your PHP4 code to PHP5, you can get the deprecated functions to work properly (especially the authentication code) by creating an .htaccess file and dropping it in the folder where your apps reside.
The .htaccess file should contain the following code:

php_flag register_globals on
php_flag register_long_arrays on

What this [...]

Counting Rows in textarea

Posted by Johan Cyprich on 29 Jan 2008 | Tagged as: Programming

I wrote a snippet which counts the number of rows of text in an HTML textarea object. Its very useful if you need to display data outside of the textarea box.

I’ve got an example of a form and the PHP function it calls.
Filename: t.php

Filename: t_handler.php

WordPress 2.3.2

Posted by Johan Cyprich on 29 Jan 2008 | Tagged as: Applications

The latest version of WordPress was released last December 29. I’ve been slow upgrading this blog due to the amount of time it takes to upgrade now, due to file and database size. It was a simple upgrade and everything seems to be working properly.

This version fixes two critical bugs where draft posts can be [...]

Preventing File Locking in E-mail Attachment

Posted by Johan Cyprich on 28 Jan 2008 | Tagged as: Programming

I’m trying to attach a file to an e-mail that I’m sending using the SmtpClient class (from System.Net.Mail) using C# for ASP.NET. Everything works correctly, but the problem is that the file that was uploaded gets locked in the folder by Windows and I can’t delete it afterwards.

This is the code I used to attach [...]

Older Entries »