Monthly Archives: October 2014

Upload File Using Upload Handler Class

 

Check Path and Create Directories

 

jQuery TreeTable Plugin

http://ludo.cubicphuse.nl/jquery-treetable/#configuration

Javascript:

Custom CSS:

Compelete Usage:

 

Chinese File Name Handling

Replace file name with Chinese characters:

Uploading Chinese file to both windows and Linux server works, but the problem is to download it. Codeigniter doesn’t allow Chinese character in URL (URI) even I made some changes to config.php and extend URI.php (Core).

To download Chinese files, to use ZIP class is a good solution. File name could be changed when adding it to archive.

Reference:

  1. http://php.net/manual/en/book.zip.php
  2. http://davidwalsh.name/create-zip-php

Sample Code:

 

Mcript (Encript a string)

Purpose: Encrypt a string in alpha numeric only and can be decripted.

 

Install PHP on IIS 6

http://blog.nami.idv.tw/?p=370

Note:

  1. Download Drivers
    http://www.microsoft.com/en-us/download/details.aspx?id=20098
    IIS 6 should download SQLSRV20.EXE
    Config in php.ini:
    extension=php_pdo_sqlsrv_53_nts_vc9.dll
    extension=php_sqlsrv_53_nts_vc9.dll
  2. Download FastCGI
    http://www.iis.net/downloads/microsoft/fastcgi-for-iis
  3. Download SQL Server Native Client (SNAC)
    http://msdn.microsoft.com/en-us/sqlserver/ff658533
    http://go.microsoft.com/fwlink/?LinkID=188400&clcid=0x409
  4. Download PHP
    http://windows.php.net/download/