How to install WordPress mu on Hostgator web hosting

I have a problem yesterday when installing wordpress mu on my baby account in hostgator web hosting. It’s really weird experience problem on installing wordpress MU on hostgator. I’m going to install wpmu site on my add on domain in my hosting account, after uploading the entire files, I started on installation step. I just go on my new add on domain homepage and the installation step page is appeared. The installation said that “There doesn’t seem to be a wp-config.php file”, ok let’s press the “Create configuration file” button. The next normal installation step is, we will be redirected into a form and fill the database configuration, but not mine! The page is always looping in the index.php!

Argh what’s going on… Then I sent a ticket to hostgator support, and the support really saved me! :)

The solution is weird as the problem, I’m installing the wordpress mu in my add on domain, then the hostgator support told me to rename first the wp-config.php file in the main site of my hosting account into something else file name, and do the wordpress mu installation as ussual. After the installation finished we need to rename the wp-config file as previous.  Sounds strange huh? But it really works!! lol..

Solving wordpress.com statistic doesn’t work

Yesterday I have a problem with my statistic wordpress plugin (wordpress.com stats), this plugin stop work and so does the statistic report. The statistic won’t log any incoming visitor to my blog, so the statistic always nil everyday. Then I started find out what happen to my blog.

The normal condition if you install wordpress.com stat plugin, you will find the javascript tracking from this plugin shown in the footer of your blog when you view the page source. But I can’t find it.

Then I go to  footer.php file in theme editor that my blog used, the blog call the wordpress.com stat tracking script with a function wp_footer(). If there’s no wp_footer on your themes, this plugin won’t run! You need to insert this function to the footer<?php wp_footer()?> before the </body> tag and everything will be fixed.

How to make transparent image using CSS

It’s quite easy if you want set transparency image on webpage using CSS. See the example google logo image, the image below using the same image source but using different CSS style. The first image is the default image without transparency effect and the 2nd image using transparency effect. When you do mouse over image 2, the image opacity will be changed.

No transparent
With Transparent Effect

How to save image using PHP MySQL

I have very simple way to store image in mysql databases. I will describe how to save images in MySQL and display it using PHP.

The first step, we need to make a MySQL databases to store our images data. Make a database called “images” on your MySQL  database, then create a table called “imagesdata”.

CREATE TABLE `imagesdata` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`image` longtext NOT NULL,
`dates` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;




April 20, 2009

Category: PHP Tags: ,

UNO goes to Facebook!

Nowadays Facebook grew really fast and everybody knows about Facebook now. I didn’t like any social networking website before, I think it’s just crap website. But my mind has changed since I knew Facebook, this website is really awesome. Like the others social networking website, we can meet with other people online than making friend, upload profile, photo, and etc. But, the best part of Facebook is, it has Facebook Application. We can find ton of Facebook application now, and those application is really interesting.




April 18, 2009

Category: Blog, Info Tags: ,

Page 1 of 71 2 3 4 5 6 7