Friday, July 13, 2012

Thursday, February 23, 2012

Enable OpenSSL in PHP for windows

Nếu dùng XAMPP để cài đặt apache, php thì sau khi cài mặc định OpenSSL chưa được enable

Cách enable openssl như sau:
1. Sửa file php.ini trong /xampp/php/php.ini thêm dòng extension=php_openssl.dll nếu chưa có (bỏ dấu comment nếu đã có dòng này)
2. Copy 2 file libeay.dll và ssleay.dll từ /xampp/php vào 2 nơi:
- Windows/System32: đảm bảo khi chạy load được thư viện
- /xampp/apache/bin: đảm bảo các thư viện cùng phiên bản với nhau (nếu không khi chạy encrypt có thể gây crash)

- chú ý đến file openssl.cnf trong quá trình code

Tuesday, January 31, 2012

Vocabulary from news

(1) adequately (adv): một cách tương xứng
Ex. Schools should pay teachers adequately so that they can concentrate on their teaching

(2) Sovereignty: chủ quyền

(3) prestigious: có uy tín 

Ex. Bach Mai is the largest and the most prestigious in Hanoi and Vietnam so even rich patients have to except its poor facilities

(4)  took advantage: lợi dụng
Ex. He took advantage of my fault to criticize my father

(5) monopoly: độc quyền 

(6) sufferer: người bị thiệt, người cam chịu
Ex. Farmers are always sufferers