Archive for April, 2007

Common PHP Session Problems and Solutions

Sometimes working with sessions can be hard. But in fact all of those hardness comes from an unproper php.ini setup.

In this entry i’ll discuss about common session problems and of course the solutions.

Continue reading ‘Common PHP Session Problems and Solutions’

Apache Windows Mod Rewrite Tips

For some people it’s a hard job to configure their Windows machine using Apache for mod_rewrite. But in fact this is not a hard process.

Let’s check the steps together.

Continue reading ‘Apache Windows Mod Rewrite Tips’

How-to move a wordpress blog to another domain

Wordpress blog software saves so much domain related data to database. For example it saves blogs that have pinged your posts (as you consider you can ping your posts also) , your blog url, a lot of permalinks, guids, etc.

So, if you move your blog to another domain you must update all of those. Without updating them most of your links will fail (=gives 404)

I searched Wordpress database to those kind of data. After understanding the database i wrote five mySQL queries to solve this sitiuation.

Here is the five query you must execute at the new server (by phpmyadmin or shell) :

Continue reading ‘How-to move a wordpress blog to another domain’

mySQL Error Code #1044, Lock Tables Problem

You’ve backuped your database using mysqldump utility. Want to transfer your old database schema to your new database on a new server. But when you try to insert your schema you got an error like this :

#1044 - Access denied for user: 'your_user_name@localhost' to database 'your_database'

Why this error occured?

Continue reading ‘mySQL Error Code #1044, Lock Tables Problem’

ODBC Long Text Problem with PHP ODBC

While working with PHP-ODBC you may encounter some errors with long texts. You may think that how you can encounter problems with strings using PHP, because PHP can handle strings with size of memory we have.

But in fact that’s not like that.

Continue reading ‘ODBC Long Text Problem with PHP ODBC’

Unable to Open Key for Read

Sometimes you can encounter errors like below while starting your Delphi IDE :

Unable to open key "SOFTWARE\Borland\BDS\3.0\Personalities" for read
or
Unable to open key "SOFTWARE\Borland\BDS\4.0\Personalities" for read

This error can occur by any of these :

Continue reading ‘Unable to Open Key for Read’

Utf-8 Problem Using Php Sockets

If you’re trying to get the contents of a page which has an utf-8 encoding using PHP’s socket functions (fsockopen, fgets, etc) may be you take some strange text which is parted or sliced into unknown parts like this :

Continue reading ‘Utf-8 Problem Using Php Sockets’