Portfolio
Php

Memcached config

November 19, 2014Category : Code/Web

Memcache Install the memecached system; large scale this is a dedicated server with 90% of the resources (*cough* RAM) is dedicated to memcached. For many smaller installations however (<10,000 nodes) you may be able to get away with memcached running on the web-server. Once memcached is running it can cached data content for D7; if..

Read more
02.

PHP’s Zend Opcache Config

November 19, 2014Category : Code/Web

PHP’s Zend Opcache Config In your php.ini or /etc/phpversion…/fpm/conf.d/05-opcache.ini  opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=50000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1

Read more
03.

Installing PHP FastCGI and Zend OPcache on XAMPP for Windows

November 14, 2014Category : Code/Web

Why install PHP + FastCGI? Mod-PHP comes installed with XAMPP, and it is slow. You also cannot utilise the Zend opcode cache, which is included with PHP itself since PHP 5.5. Steps to install PHP + FastCGI

Read more
05.

Hướng dẫn tăng tốc Nginx web server với Pagespeed

November 14, 2014Category : Code/Web

Nginx bản thân nó đã là một web server có hiệu suất hoạt động rất tốt. Tuy nhiên vẫn có nhiều cách để tối ưu thêm và một trong số đó là sử dụng module được phát triển bởi Google có tên PageSpeed (ngx_pagespeed) ngx_pagespeed tăng tốc website của bạn và giảm thời gian load đáng kể bằng..

Read more
06.

Hướng dẫn cài đặt Memcached đầy đủ trên CentOS 6

November 14, 2014Category : Code/Web

Memcached là một hệ thống cache hoạt động bằng cách lưu tạm thông tin những dữ liệu bạn hay sử dụng vào bộ nhớ RAM. Do tốc độ đọc ghi của bộ nhớ bao giờ cũng cao hơn so với lưu trữ file nên việc sử dụng memcached giúp cho hệ thống của bạn tăng tốc..

Read more
07.

Hướng dẫn cài đặt và cấu hình PHP Zend OPcache trên CentOS

November 14, 2014Category : Code/Web

Sử dụng APC hoặc APCu từ lâu đã là một phương pháp opcode cache được sử dụng rộng rãi để tối ưu hoạt động của VPS. Tuy nhiên APC không được cập nhật, nâng cấp thường xuyên (phiên bản stable mới nhất 3.1.9 ra ngày 2011-05-14) và thỉnh thoảng vẫn xuất hiện một số lỗi..

Read more
08.

Hướng dẫn config VPS chịu tải lớn

November 14, 2014Category : Code/Web

Hiện tại có rất nhiều hướng dẫn cấu hình để có thể tạo được VPS chịu tải lớn trên mạng thông qua load balancing, optimize các services… Hôm nay, mình sẽ hướng dẫn các bạn một cách khác sử dụng kết hợp Zend Opcache, Memcache để có thể xây dựng được VPS có thể chịu..

Read more
09.

Ajax Username Validation with PHP and MySQL

October 5, 2014Category : Code/Web

Database and table First create a database in mysql and create a table called members in it. CREATE DATABASE books; CREATE TABLE members (id INT(20) NOT NULL AUTO_INCREMENT, username VARCHAR(100)); Insert some dummy values. INSERT INTO members (username) VALUES(“anand.roshan”); …

Read more
010.

[Magento] Exporting products to CSV results in “Invalid entity model” error

November 11, 2013Category : Code/Web

To resolve it open  app/code/core/Mage/ImportExport/Model/Export/Adapter/Abstract.php around line no. 60 replace  $destination = tempnam(sys_get_temp_dir(), ‘importexport_’); to  $destination = tempnam(Mage::getBaseDir() . ‘/tmp/’ , ‘importexport_’);

Read more
011.

[Mangento] Limit number product in Homepage list.phtml

September 12, 2013Category : Code/Web

Tìm < ?php $i=0; foreach ($_productCollection as $_product): ?> Thêm vào sau < ?php if($this->getIsHomepage() && $i==10) break; ?>

Read more
012.

Hướng dẫn đăng kí OpenShift VPS

June 26, 2013Category : IT & Network

Đôi lời về Openshift: OpenShift is Red Hat’s Cloud Computing Platform as a Service (PaaS) offering. OpenShift is an application platform in the cloud where application developers and teams can build, test, deploy, and run their applications. OpenShift takes care of all the infrastructure, middleware, and management and allows the developer to focus on what..

Read more
013.

PHP func – Chống SQL

July 25, 2012Category : Code/Web IT & Network

Hạn chế sự tò mò của các bác function anti_sql($sql) { $sql = preg_replace(sql_regcase(“/(from|select|insert|delete|where|drop table|show tables|#|*|–|\)/”),””,$sql); return trim(strip_tags(addslashes($sql))); #strtolower() } một cách khác

Read more
014.

QoS trong MPLS

June 18, 2012Category : IT & Network

CHƯƠNG 1: GIỚI THIỆU MỘT SỐ THẾ HỆ MẠNG 1.1 MẠNG IP a. Chuyển tiếp IP và những hạn chế của nó Như ta đã biết, Internet là một tập hợp các mạng kết nối với nhau dùng để chuyển tiếp gói tin giữa các host sử dụng IP. IP cung cấp dịch vụ đóng..

Read more
015.

Các cách tối ưu hoá cho một Website có lượng truy cập và dữ liệu lớn.

October 18, 2011Category : Code/Web

Những Website lớn khi có lượng truy cập và lượng dữ liệu lớn thường hay có hiện tượng treo Server, chêt Process PHP, SQL bị locktable, Copying to tmp table…những hiện tượng này đều do lượng dữ liệu khổng lồ, SQL và code chưa được tối ưu hóa, chưa xử lý cache(cache file, cache SQL,..

Read more
016.
© Oliver / All rights reserved.
To top