April 2007 Archives

PHP5 & osCommerce

If you install osCommerce in PHP5 environment, must fix this below file code.
In admin\includes\classes\upload.php file, find out line 31.
// self destruct
// $this = null;
unset($this);
Other issue:
http://www.magic-seo-url.com/oscommerce/tips/running-oscommerce-with-register-globals-off.html

Pre-Installation Procedure:
1. Download the osc22ms2_utf8.zip file from http://www.kmd.com.tw/
2. Unzip this file to new folder of Web Server.

Upgrade Procedure:
1. Type the URI of new folder in Web Server. Ex: http://www.xxx.com/install/index.php
2. Click the Install Button.
3. Select the Upgrade option.
4. Type Mysql db information.
5. Select the "Continue" Button, then you will see those tables of db have been modified successfully.
6. Type the URI of step1 again, and click the Install Button, too.
7. Select the Install option.
8. Don't select the import any db data option, select save the configuration.
9. Type Web Server information.
10. type Mysql db information.
11. Finish, check your new osCommerce website.

Change MySQL data in latin1 to utf8:
This step, you can refer Turning MySQL data in latin1 to utf8 utf-8, or WP.ORG.CN
But, just use "mysqldump -uUSERNAME -pPASSWORD --database DBNAME --default-character-set=latin1 > /home/SAVEFILE", then open SAVEFILE by Notespad, import the SAVEFILE through phpmyadmin.

Modify osCommerce Database.php code:
1. Find out "mysql_query" string in Three file, includes\functions\database.php, admin\includes\functions\database.php, install\includes\functions\database.php.
2. Insert below words before "mysql_query" string.
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER_SET_CLIENT=utf8");
mysql_query("SET CHARACTER_SET_RESULTS=utf8");

February 2012

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Archives

Powered by Movable Type 4.34-en

About this Archive

This page is an archive of entries from April 2007 listed from newest to oldest.

March 2007 is the previous archive.

May 2007 is the next archive.

Find recent content on the main index or look in the archives to find all content.