28 กุมภาพันธ์ 2555

รูปแบบการโปรโมทเว็บไซต์ เพื่อการตลาด

เทคนิคทั้ง 4 ประเภทนี้ เป็นส่วนหนึ่งของเครื่องมือ การทำเว็บไซต์ให้มีรายได้ ต้องอาศัยการนำเทคนิค ต่างๆ มาใช้งานร่วมกัน


เครื่องมือวิเคราะห์ผลทั่วไป เช่น TwitAnalyzer, SocialBakers, Twentyfeet

27 กุมภาพันธ์ 2555

ตั้งค่าการอัพโหลดไฟล์ใหญ่ๆ ใน php.ini



webserver settings:
connection timeout = 1800

php.ini settings:
max_execution_time = 1800 
memory_limit = 50M 
post_max_size = 50M 
file_uploads = On 
upload_tmp_dir = c:\php\upload_temp 
upload_max_filesize = 50M

How to Upload Large Files in PHP

php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_input_time 300
php_value max_execution_time 300

ini_set('upload_max_filesize', '10M');
ini_set('post_max_size', '10M');
ini_set('max_input_time', 300);
ini_set('max_execution_time', 300);

PHP also provides a set_time_limit() function so you don’t need to set max_execution_time directly.
Setting the options in your PHP code is possibly more practical, since you can extend the execution time and increase the file size when your application is expecting a large upload. Other forms would revert to the default 30-second time-out and 2MB limit.


เครื่องมือ php
http://blog.limedomains.com/2010/06/02/15-useful-php-tools/

Help you สำหรับผู้ใช้โน๊ตบุ๊ค Toshiba

Download Driver Toshiba Notebook 2011

รุ่น NB 500 / 505/ 520

รุ่น Satellite L730/L735 Series
หมายเหตุ : Driver สำหรับ XP อาจจะยังไม่สมบูรณ์ บางตัว  อันเนื่องจากเครื่องรุ่นใหม่จะ Support Windows ใหม่ ๆ มากกว่าครับ คงต้องรอว่าจะมี Driver ของ XP ออกมาใหม่หรือไม่ครับ 
สำหรับรุ่น L730 ด้านล่าง ใช้ driver บางตัวตามนี้นะครับ ที่เหลือก็ด้านบนเหมือนเดิมครับ
L730-1001UT   (PSK75L-004003)

L730-1002XT   (PSK79L-001001)
PSK75L_32BIT Display intel HD for win7 PSK75L_64BIT Display intel HD for win7

PSK79L_32BIT Display  Nvidia for win7 Nvidia HD Audio
PSK79L_64BIT Display  Nvidia for win7  Nvidia HD Audio



intel Chipset
intel Management
intel Rapid Storage
Sound Conexant
Card Reader Realtek
Driver wireless lan Driver Lan
Driver  Bluetooth   


รุ่น Satellite L740/L745 Series

9 กุมภาพันธ์ 2555

มาทำ breadcrumb ในบล๊อก wordpress ใช้กันเองดีกว่า

มาทำ breadcrumb ในบล๊อก wordpress ใช้กันเองดีกว่า

โดย abxnet / โพสต์เมื่อ 16 กรกฎาคม 2011
ถ้าพูดถึง breadcrumb หลายๆคน  คงยังงงอยู่ว่ามันคืออะไร  แต่สำหรับหลายคนที่ทำ SEO ก็อาจจะรู้จักกันดี แต่ผมว่าก็อาจไม่ทุกคน เดียววันนี้ผมจะมาทำให้มันกระจ่างถ่องแท้ว่ามันคืออะไร เกี่ยวข้องกับ wordpress และ SEO อย่างไร

breadcrumb คืออะไร และส่งผลดีต่อ SEO อย่างไร ?

breadcrumb ถ้าแปลความหมายตรงตัวก็หมายถึง
bread = ขนมปัง crumb = เศษ  แปลรวมกันแล้วก็หมายถึง  bread + crumb = เศษขนมปัง
งงกันเลยดิครับ ที่ผมแปลให้ดูเพื่อให้เห็นรากศัพท์ของมัน ซึ่งมันก็ตลกดี เดียวเรามาดูตัวอย่างภาพของจริงกันก่อนเลยดีกว่า

มาทำ breadcrumb ในบล๊อก wordpress
รูปเว็บตัวอย่างที่มีการใช้ breadcrumb ในเว็บไซต์
google-seo-breadcrumbs
รูปผลลัพธ์ที่ใช้ breadcrumb แล้ว google เอาไปแสดงในหน้าผลลัพธ์การค้นหา
ถ้าดูจากตัวอย่าง ผมคิดหลายคนคงเข้าใจบ้างแล้วว่ามันคืออะไร และมีประโยชน์ กับ SEO ของเว็บของเราอย่าง แต่ผมจะขอสรุปสั้นๆนะครับ  breadcrumb ก็คือเครื่องมือที่ใช้นำทางในเว็บของเราให้รู้ว่าตอนนี้เราอยู่ส่วนไหนของ เว็บไซต์ อยู่ลึกจากหน้าหลัก หรือ ว่า homepage เข้ามาเท่าไร ซึ่งแต่ละเว็บไซต์ก็จะไม่เหมือนกัน ขึ้นอยู่กับโครงสร้างของเว็บไซต์แต่ละเว็บ ส่วนที่ส่งผลต่อ SEO นั้นก็คงตามภาพที่ 2 ที่ท่านเห็น google จะนำส่วนของ breadcrumb ไปแสดงที่หน้าของผลการค้นหาด้วย
เราจะแสดง breadcrumb ในเว็บ wordpress ของเราอย่างไร ?
ก่อนอื่นในเว็บ wordpress ของคุณต้องมีไฟล์ function.php ก่อนถ้าไม่มีให้สร้างไว้ใน โฟล์เดอร์ ธีมที่คุณใช้อยู่ก่อน หลังจากนั้นก็ก็อปปี้ โค็ดด้านล่างไปไว้ใน function.php
function the_breadcrumb() {
 echo 'You are here: ';
 if (!is_front_page()) {
  echo 'Home';
 echo " » ";
  if (is_category() || is_single()) {
   the_category(' ');
   if (is_single()) {
    echo " » ";
    the_title();
   }
  } elseif (is_page()) {
   echo the_title();
  }
 }
 else {
  echo 'Home';
 }
}
อธิบายโค้ด
function the_breadcrumb() {
บรรดทัดที่ 1 :
เป็นการสร้างฟังก์ชัน the_breadcrumb() ขึ้นมา
echo 'You are here: ';
บรรดทัดที่ 2 :
ให้แสดงคำว่า You are here: ขึ้นเริ่มต้น แต่ถ้าไม่ชอบคำนี้ก็เปลี่ยนได้ครับ อาจจะเป็นคำว่า "คุณอยู่ที่" เป็นต้น
if (!is_front_page()) {
  echo 'Home';
 echo " » ";
บรรทัดที่ 3 – 7:
ฟังก์ชัน !is_front_page() เป็นการตรวจสอบว่าไม่ใช่หน้าแรกหรือไม่ ถ้าไม่ใช่หน้าแรกให้แสดงค่าในเงื่อนไข โดยในที่นี้ให้แสดง  ลิงค์หน้าแรกหรือ homepage ไปยังคำว่า Home > ในบรรทัดที่ 6 แล้วลิงค์ URL โดยเรียกใช้ฟังก์ของ wordpress get_option(‘home’) ในบรรทัดที่ 5
if (is_category() || is_single()) {
   the_category(' ');
   if (is_single()) {
    echo " » ";
    the_title();
   }
บรรดทัด 8 -13:
is_category() เป็นการตรวจสอบว่า แสดงหน้า category อยู่หรือไม่ is_single() เป็นการตรวจสอบว่า แสดงหน้าบทความหรือไม่ ถ้าแสดงหน้า category ให้แสดงชื่อ category ถ้าแสดงหน้าบทความให้แสดง ชื่อ category > และชื่อบทความ
} elseif (is_page()) {
   echo the_title();
  }
 }
บรรดทัด 14 – 17:
ตรวจสอบว่าแสดงหน้า page หรือไม่ ถ้าแสดงอยู่ให้แสดง title ของ หน้า page
else {
  echo 'Home';
 }
}
บรรดทัด 18 – 21:
ถ้าไม่ใช่หน้า category,บทความ หรือหน้า page ให้แสดงข้อความว่า Home
เสร็จแล้วเมื่อเราต้องการจะแสดง breadcrumb ก็แทรกโค้ดด้านล่าง ลงไปในส่วนที่ต้องการในธีม




The First Solution: Use Relative File Paths

A web server will automatically assume that the code below belongs on the server, and thus, is not a remote file:
PHP Include File With Relative Paths

include (header.php); //This file is in the same directory as the PHP file

include (includes/header.php); //This file is in a directory under the PHP file

include (../header.php); //This file is in the directory above the current PHP file

?>
Relative file paths can be used in every legitimate situation an absolute path would be used, although it may take a little more work. As in the example above, you may have to work at determining where the file you wish to include exists in relation to the PHP file being run.
Not your idea of fun? We aren’t fond of it either, so on to the next solution!

The Second Solution: Use Another PHP Function

We may substitute the include statement with file_get_contents, which reads an entire file into a string.
PHP Include With File_Get_Contents

= file_get_contents("http://www.YourDomain.com/includes/header.php");

echo $includeFile;
?>


This is a good alternative to keep the absolute path an option in including a certain file. There are some instances where the above code wouldn’t come out as planned, depending on the situation. In addition, it adds another line of code that we can relinquish with the best solution: using a server variable.

The Best Solution: Using Server Variables

If you don’t want to spend hours rearranging code, you can do it the easy way with $_SERVER['DOCUMENT_ROOT'].
PHP Include Server Variables

include $_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'; 

?>


This allows you to keep the absolute path that you’ve come to be familiar with in using the include statement. Technically, the $_SERVER['DOCUMENT_ROOT'] command gives your path to the public_html directory, as seen below:

  • /home/Your_Username/public_html

  • Essentially this is the root of your website, www.YourDomain.com, and therefore, you can use it just as you would with any other include statement. Just replace www.YourDomain.com with the server variable and you’re set!