ทำเว็บ - Category

โปรดระัวัง Template มีการฝั่ง Ifame

วันนี้ผมได้โหลด Template อันหนึ่งไปใช้ครับ จากนั้นทำการปรับแต่งจนเสร็จเรียบร้อยแล้ว แต่แปลกใจตรงที่หน้าเว็บมันโหลดช้ามากกว่าปกติ จึงทำการตรวจสอบ Code ของ Template ในทุกๆ ส่วน ก็พบว่าใน Template มีการฝั่ง iFame ไว้ ถ้าใครโหลดไปก็ควรตรวจสอบ Template ที่ใช้งานด้วยนะครับ ไม่งั้นอาจจะตกเป็นเหยือได้ง่ายๆ สำหรับ Template ที่ผมโหลดไปใช้นั้นได้ทำการ ifame ไปยังเว็บ wpstyles.org ครับ แต่มันหลอกอีกชั้นหนึ่ง โดยการใส่ ifame ของอีก Domain หนึ่งแทน

ifame
ifame

Posted by admin on June 27th, 2009 No Comments

Wordpress Upload รูปไม่ได้..

วันนี้นึกว่าเว็บจะใช้งานได้ตามปกติหลังจากย้ายโฮสมาแล้วซะอีก หลังจากแก้ไข Path ที่ผิดพลาดก็ดันไปเจอ Error อีกตัวหนึ่งครับ ทำให้ไม่สามารถที่จะ Upload รูปภาพขึ้นไปได้โดยใช้ Flash uploader ครับ มันจะฟ้อง Error พร้อมกับให้ปุ่ม Dismiss หากไม่สามารถใช้ Flash uploader ก็จะทำให้ความสะดวกในการทำงานลดลงไปมากเลยละครับ  สำหรับ Error ที่มันแจ้งขึ้นมาคือ

HTTP error.

An error occurred in the upload. Please try again later.

แหมม.. ขึ้นมาซะแดงแบบนี้เล่นเอาตกใจแย่เลยครับ สำหรับ Error ตัวนี้แก้ไม่ยากครับ ทำตามขั้นตอนดังต่อไปนี้เลยครับ

  1. Login FTP เพื่อดึงไฟล์ .htaccess กลับมาก่อนครับ
  2. จากนั้นเปิดไฟล์ขึ้นมาแล้วนำ Code นี้แทรกลงไปพร้อมกับ Upload กลับคืนไปทับไฟล์เก่าครับ

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

เพียงเท่านี้ก็จะสามารถใช้ Flash uploader ได้ตามปกติแล้วละครับ

Wordpress Error

Posted by admin on May 16th, 2009 1 Comment

ย้าย Host แล้ว Wordpress Error

เนื่องจากเว็บไซต์ของผมเว็บนี้เมื่อก่อนนั้นอยู่โฮสนอก แต่ตอนนี้ได้ย้ายเข้ามาในโฮสไทย (โฮสพี่ต่อ tosakp ต้องขอขอบคุณพี่ต่อเป็นอย่าสูงที่รับฝากเว็บผม )  แต่หลังจากย้ายเข้ามาก็เจอปัญหามากมายในการย้ายโฮส Plugins Error บทความ Upload รูปภาพไม่ได้ WP Super Cache ไม่ทำงาน ฯลฯ แต่ปัญหาที่แก้ลำบากเล่นเอางงไปหลายวันคือไม่สามารถ Upload รูปภาพได้นี้ละครับ

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com/wp-content/uploads/2009/05) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com/wp-content/uploads/2009) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com/wp-content/uploads/2009) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com/wp-content/uploads) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com/wp-content/uploads) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com/wp-content) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com/wp-content) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/.fabricating/sutenm/sutenm.com) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/.fabricating/sutenm) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/.fabricating/sutenm) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/.fabricating) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/.fabricating) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1737

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/www/virtual/sutenm.com/:/home/www/virtual/sutenm.com/phptmp/:/usr/share/php/) in /home/www/virtual/sutenm.com/htdocs/wp-includes/functions.php on line 1746

Unable to create directory /home/.fabricating/sutenm/sutenm.com/wp-content/uploads/2009/05. Is its parent directory writable by the server?
ขึ้น Error แบบนี้ ท่านใดที่เจอปัญหาแบบผม วันนี้ผมจะมาเสนอแนวทางการแก้ไขครับ ปัญหานี้เกิดจากสาเหตุ 2 สาเหตุครับ คือ Permission และ Path ผิดพลาด วิธีแก้คือ
  1. ปรับ Permission Directory uploads และ Directory ย่อยที่อยู่ใน uploads ให้เป็น 777
  2. Login เข้าไปที่ admin เข้าที่ Settings > Miscellaneous > ช่อง Store uploads in this folder แก้ไขเป็น “wp-content/uploads”

เพียงเท่านี้คุณก็จะสามารถ Upload ไฟล์รูปภาพได้ครับ

Posted by admin on May 11th, 2009 5 Comments

วิธีทำ Contact Us ใน Wordpress

วันนี้ผมจะมาเสนอวิธีทำ Contact Us (ติดต่อเรา) อย่างง่ายใน  CMS อย่าง Wordpress กับ Plugin ที่ชื่อ  Easy Contact นะครับ

ก็อย่างที่ผมอกไป คือมัน ง่าย.. แสนง่าย.. แต่ตัวผมนั่งจมเป็นเวลา 10 นาที เหอๆ ทำไมง่ายแต่ยาก เอ้ย ง่ายแต่ใช้เวลานาน ก็เพราะมันง่ายจนตัวกระป๋มเอง งงไงละครับ เอ้า.. ยิ่งเขียนยิ่ง งงตัวเอง ฮ่าๆ เอาเป็นว่าไปดูวิธีทำดีกว่าครับ

1. เข้าไปโหลด Plugin ที่ชื่อ Easy Contact ใน http://wordpress.org/extend/plugins/easy-contact/
2. อัป Plugin ตัวนี้ขึ้นไปในเว็บ แล้วเข้าไป Activate ครับ
3. เข้าไปจัดการ Form ได้ที่ Settings > Contact
4. สร้าง Page หรือ Posts ขึ้นมา จากนั้นนำ Code [easy-contact] ไปวางไว้

จบข่าว ง่ายๆ เลยครับ

Posted by admin on April 3rd, 2009 2 Comments

Free Hosting จาก ImHosted.com 3 เดือน

วันนี้จะมาแนะนำ Free Hosting คุณภาพเยี่ยม 3 เดือนจาก ImHosted.com พร้อมแนะนำวิธีสมัครใช้งานมีรูปประกอบ รองรับ PHP, MySQL, CGI-Bin, Perl, SSL, SSH, FTP, cPanel, Webmail (พอดีมีคนถามมาว่า ImHosted.com นั้นสมัครใช้งานยังไงนะครับ เลยมาเขียนลงในนี้เลยดีกว่า) เอาเป็นว่ามาดูวิธีสมัครใช้งานกันดีกว่าครับ ก่อนอื่นเตรียมเครื่องมือกันก่อนดีกว่าครับ สิ่งที่ต้องใช้นั้นคือ

  1. Promotional Code 3MONTHSFREE
  2. Email Account
  • ต่อไปมาดูวิธีสมัครกันนะครับขั้นแรกให้เข้าไปที่ URL นี้ครับ (Copy ไปวางนะครับ)

http://www.imhosted.com/hosting_plans.shtml

  • จากนั้นเลื่อนลงไปข้างล่างสุดคลิก Order เลยครับ
  • คลิก  >> Sign up Now ครับ
  • กด Order Now ตรง Power Plan ครับ

  • จากนั้นจะเข้าสู่ Step 2 Domain Options นะครับผมก็ไปสมัครโดเมน .co.cc มาอันหนึ่งก่อน จากนั้นเลือก I will update my nameservers on an existing domain Or I will register a new domain. ครับมันจะมีช่องให้ใส่โดเมนขึ้นมา ชื่อโดเมนของผมคือ imhosted-sutenm.co.cc นะครับช่องแรกผมใส่ imhosted-sutenm ช่องหลังใส่ co.cc ครับ หรือหากต้องการโดเมน .com .net ก็จดที่นี้ได้เลยครับแต่ไม่แน่ใจว่ามันจะฟรีไหมนะครับ เพราะมันบอกตรง Step 1 ว่า Free Domain Registration on selected payment terms

หมายเหตุ แก้ Name server : ที่ co.cc มาที่ NS.DNSPROTECT.COM และ NS2.DNSPROTECT.COM

  • จากนั้นจะเข้าสู่ Step 3 Configure นะครับ ตรง Billing Cycle : เลือก 3 Month Price – $9.25 USD + $15.00 USD Setup Fee

  • จากนั้น Step 4 Confirm Order มันจะถาม Promotional Code ก็เอา 3MONTHSFREE ไปใส่จากนั้นกด Validate Code >> ครับ

ถ้ามันขึ้นมาแบบนี้แสดงว่าได้แล้วนะครับให้กด CheckOut >> เลยครับ

  • เข้าสู่ Step 5 Checkout นะครับตรง Your Details ก็กรอกรายละเอียดให้ครบนะครับ ตรง Payment Method ผมเลือก Paypal นะครับ ติกตรง I have read and agree to the Terms of Service แล้วกด Complete Order เลยครับ

  • จากนั้เข้าสู้หน้า MaxMind เขาจะโทรมาบอก Pin Code: ตามเบอร์โทรที่เราให้ไว้ครับ แต่.. เราไม่ต้องรอเขาโทรมาบอกก็ได้ครับ สามารถเข้าใช้งานได้เลยครับ เข้าไปเปิดเมลที่เราได้กรอกไว้จะได้รับเมลอยู่ 5 ฉบับ Welcome‏,Order Confirmation‏,New Account Information‏,Invoice Payment Confirmation‏,Customer Invoice‏ ครับ (เมลบ้างฉบับอาจตกไปอยู่ใน Junk mail นะครับลองเข้าไปเช็คดูครับ)

เสร็จแล้วครับผม ขึ้นตอนอาจจะเยอะไปหน่อยนะครับแต่เป็น Free Hosting คุณภาพจริงๆครับ ยังไงลองใช้งานกันดูนะครับ ทุกท่านสามารถ Copy ผมไปได้เลยนะครับผม ไม่ขออะไรมากมายครับ ขอลิงค์กลับมาแค่ 1 ลิงค์ก็พอครับ

Free Hosting Free Hosting Free Hosting Free Hosting Free Host Free Host Free Host Free Host Free Host Free Host โฮสฟรี โฮสฟรี โฮสฟรี โฮสฟรี โฮสฟรี ฟรีโฮส php ฟรีโฮส php ฟรีโฮส php ฟรีโฮส php ฟรีโฮส php ฟรีโฮส ฟรีโฮส ฟรีโฮส ฟรีโฮส

Posted by admin on January 2nd, 2009 3 Comments