Oct
26

configให้รันเครื่องตัวเองแล้วชี้ไป ip อื่น

 สำหรับDeveloper ที่ต้องการเทสในเครื่องตัวเองแล้วไม่มีปัญหาเรื่อง path
ไปที่ ไฟล์ C:\WINDOWS\system32\drivers\etc\hosts
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost 
(พิมพ์ ip tab 1 ครั้งตามด้วยdomain name ที่ต้องการ)

Sep
26

SCRIPT ERROR REPORTING

// SCRIPT ERROR REPORTING
ini_set(’display_errors’, ‘1′);
error_reporting (E_ALL); // Report everything

Aug
27

ลอง Linux

คำสั่ง ดู mount Path ทั้งหมดที่มีอยู่ปัจจุบัน         

  • df -k            

คำสั่ง เปิด socket  ในการ mount data (กรณีที่admin ยังไม่ได้เปิด)         

  • nfsiod -n 4    

คำสั่ง mount data         

  • mount -t nfs -v 192.168.2.40:/vol/adodb /adodb         
  • mount -t nfs -v 192.168.2.40:/vol/data /data

คำสั่ง Restart apache (เครื่อง 205 =>FreeBsd)

  • usr/local/etc/rc.d/apache22 restart

ขอบคุณพี่ไปร์สุดหล่อ ที่เอื้อเฟื้อความรู้เสมอ

Aug
25

iambeau

+++Hello world+++ OOP - SOA - REST - DOM - SAX - XML  ลาก่อน………

top