Portfolio
project

WinNMP – Config

February 27, 2018Category : Code/Web IT & Network

How to send emails using PHP WinNMP has 2 options for processing emails sent by PHP’s mail() function: mSmtp and mailToDisk (default). To change the option, edit confphp.ini and modify sendmail_path: For Development use mailToDisk (the default): sendmail_path = ‘”C:/WinNMP/bin/php” -n -f “C:/WinNMP/include/tools/mailtodisk.php”‘ Emails will be saved to logmail-XX.txt For Production use mSmtp: sendmail_path = ‘”C:/WinNMP/bin/msmtp/msmtp.exe” -C “C:/WinNMP/conf/msmtp.ini” -t’ You also need to edit confmsmtp.ini in order to configure SMTP server options   How..

Read more
01.

Install Node.js – CentOS

December 18, 2017Category : Code/Web

Install the Distro-Stable Version of Node.js with YUM In order to download this version, we will use the yum package manager. Update your yum packages: sudo yum update Install Node.js: sudo yum install nodejs Verify the current version of Node.js: node –version Install npm (Node Package Manager): sudo yum install npm Install Node.js using NVM Instead of using yum, you can install..

Read more
02.

Phân tích hệ thống tiki.vn 2014

September 21, 2017Category : Code/Web

Tổng quan hệ thống Mọi lời nói không thể thay thế bằng hình ảnh rõ ràng được :) Tiki sử dụng Magento version 1.x Source code Magento sẽ được deploy lên 4 server web app, server Media và request sẽ được load balance qua 4 server này Database sử dụng là Percona MySQL được cấu..

Read more
03.

Magento import produdct – fix product not show

September 1, 2016Category : Code/Web

SQL <?php /** * @author Linhdh * @website http://181988.xyz * @project update price and specialPrice */ error_reporting(E_ALL | E_STRICT); define(‘MAGENTO_ROOT’, getcwd()); $mageFilename = MAGENTO_ROOT . ‘/app/Mage.php’; require_once $mageFilename; Mage::app(); $ids = Mage::getModel(‘catalog/product’)->getCollection()->getAllIds(); Mage::getSingleton(‘catalog/product_action’)->updateAttributes( $ids, array(‘status’=>1, ‘visibility’=>4), 0 );  

Read more
04.

Magento remove duplicate img

September 1, 2016Category : Code/Web

SQL <?php /** * @author Linhdh * @website http://181988.xyz * @project update price and specialPrice */ include(‘app/Mage.php’); //Mage::App(‘default’); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); error_reporting(E_ALL | E_STRICT); Mage::setIsDeveloperMode(true); ini_set(‘display_errors’, 1); ob_implicit_flush (1); $mediaApi = Mage::getModel(“catalog/product_attribute_media_api”); $_products = Mage::getModel(‘catalog/product’)->getCollection(); $i =0; $total = count($_products); $count = 0; foreach($_products as $_prod) { $_product = Mage::getModel(‘catalog/product’)->load($_prod->getId()); $_md5_values = array(); //protected base image $base_image..

Read more
05.

Magento SQL update price and special price form csv

September 1, 2016Category : Code/Web

SQL <?php /** * @author Linhdh * @website http://181988.xyz * @project update price and specialPrice */ $mageFilename = ‘app/Mage.php’; require_once $mageFilename; Mage::setIsDeveloperMode(true); ini_set(‘display_errors’, 1); umask(0); Mage::app(‘admin’); Mage::register(‘isSecureArea’, 1); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); set_time_limit(0); ini_set(‘memory_limit’,’1024M’); /***************** UTILITY FUNCTIONS ********************/ function _getConnection($type = ‘core_read’){ return Mage::getSingleton(‘core/resource’)->getConnection($type); } function _getTableName($tableName){ return Mage::getSingleton(‘core/resource’)->getTableName($tableName); } function _getAttributeId($attribute_code = ‘price’){ $connection = _getConnection(‘core_read’); $sql..

Read more
06.

Create bot Facebook Messenger

April 21, 2016Category : Code/Web

Dưới đây là các bước để tạo một bot chat trên Facebook Messenger. 1. Thiết lập Messenger bot sử dụng web server để xử lý những tin nhắn mà nó nhận được hoặc tìm ra các tin nhắn để gửi. 1.1. Xây dựng server 1. Tải và cài đặt Heroku Toolbet tại đây để khởi..

Read more
07.

[WP] CODELOBSTER – IDE CHUYÊN DỤNG CHO WORDPRESS DEVELOPER

October 28, 2014Category : Code/Web

Nếu bạn là một người đã từng học sơ qua về lập trình căn bản thì sẽ không thể nào không biết về thuật ngữ IDE(Integrated Development Environment). Hiểu nôm na thì đó là một phần mềm/công cụ hỗ trợ soạn thảo code chuyên dụng có tích hợp thêm nhiều tính năng bổ sung giúp..

Read more
08.

18 Meta Tags Every Webpage Should Have

March 12, 2014Category : Marketing

The definitive guide to Search and Social Meta Tags you should be using in 2013. No fluff, no wasted code, just what you need to use. Let’s get back to basics. If I’m to be honest, flashbacks of arguments with copywriters in ad agencies turn me off to the discussion of metadata. However the reality..

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