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");

March 2010

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 30 31      

Archives

Powered by Movable Type 4.34-en

Recent Comments

  • panandy: 3Q read more
  • Anonymous: philipz大 沒有邀請碼,無法註冊,致無法下載工具 請問有何方法可以解決? 感恩 read more
  • philipz: harushard, It is your java code problem. Check it and read more
  • harushard: java.lang.NoClassDefFoundError: Could not initialize class examples.ExamplesMCRFactory could you explain why read more
  • philipz: IM已經是無解了,建議可以用Plurk Api試看看。 read more
  • ann: hi,請問以上問題解決了沒?可以分享一下嗎? read more
  • Anonymous: 邀請碼沒有~無法下載工具~~怎麼辦 read more
  • Melody: test read more
  • philipz: Ginger: 您好,請您在我的噗浪上留言即可一起討論。 read more
  • Ginger: 版大您好: 在看過您做的期貨即時訊息BOT後覺得很不錯,自己也有一些想法不知能否與您交流與協助呢? 若您覺得ok的話,可以email或是噗浪(ID: king0355)與我聯繫。感謝 : ) read more

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.