WP63
  • Web Development
  • WordPress Development
  • Plugins

Category: Web Development

ส่งอีเมลด้วย SendGrid

ส่งอีเมลด้วย SendGrid

การส่งอีเมลเป็นหนึ่งในสิ่งที่เราทำกันบ่อยๆ บนเว็บไซต์ ซึ่งท่าที่โปรแกรมเมอร์ PHP ชาวไทยใช้กันบ่อยๆ ก็คือเอา SMTP ของ Gmail มาใช่ส่งเมลผ่าน SMTP ด้วยไลบรารี่อย่าง PHPMailer ปัญหาคืออีเมลที่ส่งออกไป มันจะเป็นแอดเดรสของ Gmail ที่เราเอา SMTP มาใช้ส่ง ซึ่งความน่าเชื่อถือมันต่ำมาก … อ่านต่อ
Web Development April 4, 2022
การใช้ @media print ในการกำหนด CSS สำหรับพิมพ์และ PDF

การใช้ @media print ในการกำหนด CSS สำหรับพิมพ์และ PDF

เว็บเบราเซอร์และระบบปฏิบัติการต่างๆ ในตอนนี้ล้วนรองรับการเซฟหน้าเว็บออกมาเป็น PDF ผ่านฟีเจอร์การพิมพ์กันหมดแล้ว แต่โดยปกติเมื่อเราพิมพ์หน้าเว็บออกมา (หรือในที่นี้คือเซฟออกมาเป็น PDF) เรามักจะได้หน้าตาเว็บที่ไม่ตรงกับเว็บจริงเท่าไหร่นัก ทำให้บางครั้งในฟีเจอร์ที่ต้องพิมพ์หรือสร้าง PDF ออกมา เราก็มองข้ามการพิมพ์เป็น PDF ไปเลย แล้วไปหาไลบรารี่สำหรับสร้างไฟล์ PDF โดยตรงมาใช้แทน อ่านต่อ
Web Development June 25, 2020
การทำ Routing ใน PHP ด้วย AltoRouter

การทำ Routing ใน PHP ด้วย AltoRouter

โดยปกติแล้ว PHP จะทำงานร่วมกับเว็บเซิร์ฟเวอร์อย่าง Apache หรือ Nginx ที่เราสามารถเรียกใช้ไฟล์ PHP ผ่าน URL โดยตรงได้เลย เช่นเราอยากเรียกไฟล์ post.php ขึ้นมาทำงาน ก็สามารถเรียกผ่าน URL https://domain.com/post.php ตรงๆ ได้เลย แต่พอเมื่อเราโดดไปเขียนภาษาอื่น … อ่านต่อ
Web Development May 29, 2020
ทำเว็บให้รองรับ Dark mode ของระบบปฏิบัติการ

ทำเว็บให้รองรับ Dark mode ของระบบปฏิบัติการ

ยุคนี้สมัยนี้ Dark theme กำลังมาแรง ระบบปฏิบัติการต่างๆ ทั้ง Windows 10, macOS, Android, และ iOS ต่างรองรับการสลับไปใช้ Dark theme กันที่ระดับระบบปฏิบัติการ และแอพต่างๆ บนระบบปฏิบัติการเหล่านี้จำนวนมากก็รองรับการสลับไปใช้ Dark theme … อ่านต่อ
Web Development April 10, 2020
ลองใช้งาน WordPress Cloud ของ Bangmod Cloud

ลองใช้งาน WordPress Cloud ของ Bangmod Cloud

หลายท่านน่าจะทราบดีว่าเราค่อนข้างอวย Cloudways แบบสุดลิ่มทิ่มประตู ซึ่งล่าสุดนี้ผู้ให้บริการชื่อดังในไทยอย่าง Bangmod Cloud ก็เปิดให้บริการ WordPress Cloud ออกมาด้วยเช่นกัน เราจึงลองเข้าไปใช้งานเฉพาะส่วน WordPress Cloud นี้ แล้วมาเขียนสรุปเทียบกับ Cloudways ให้อ่านกัน วิธีเปิดใช้งาน พร้อมย้ายเว็บจากโฮสต์เดิมเข้าสู่ Cloudways … อ่านต่อ
Web Development March 8, 2020
การใช้ Laravel Mix สำหรับคอมไพล์ CSS และ JavaScript ใน WordPress และโปรเจ็กท์ standalone

การใช้ Laravel Mix สำหรับคอมไพล์ CSS และ JavaScript ใน WordPress และโปรเจ็กท์ standalone

เราเข้าสู่ทศวรรษที่ 20s แล้ว เรามีเครื่องมือช่วยอำนวยความสะดวกในการทำเว็บเยอะแยะมากมาย หนึ่งในนั้นคือบรรดา CSS Preprocessor ทั้งหลายไม่ว่าจะเป็น SASS, LESS, หรือ Stylus รวมไปถึงฟีเจอร์ใหม่ๆ ใน JavaScript ที่เพิ่มเข้ามาใหม่อย่างรวดเร็วจนเบราเซอร์ตามกันไม่ค่อยทัน กำแพงสำคัญอย่างหนึ่งที่ทำให้หลายคนยังไม่ก้าวไปใช้เครื่องมือเหล่านี้สักทีนั่นคือความยุ่งยากในการตั้งค่าเครื่องมือในการคอมไพล์ (หรือทรานสไพล์) ภาษาเหล่านี้ให้เป็นโค้ดที่เบราเซอร์ส่วนใหญ่ในตลาดสามารถเอาไปใช้งานได้ เออ … อ่านต่อ
Web Development February 9, 2020
4 ฟีเจอร์ใหม่ใน PHP 7.4 ที่ช่วยให้เขียนโค้ดสะดวกขึ้น

4 ฟีเจอร์ใหม่ใน PHP 7.4 ที่ช่วยให้เขียนโค้ดสะดวกขึ้น

ในขณะที่เรายังหาทางแก้ปัญหา call to undefined function: mysql_pconnect() กันอยู่ PHP 7.4 รุ่นเสถียรก็ได้ปล่อยออกมาให้เราได้ใช้งานกันแล้วเมื่อวันที่ 28 พฤศจิกายนที่ผ่านมา ฟีเจอร์หลายๆ อย่างใน PHP 7.4 จะเน้นไปที่การทำให้เราสามารถเขียน PHP ได้สะดวกขึ้น โค้ดกระชับและอ่านง่ายขึ้น … อ่านต่อ
Web Development December 7, 2019
ใช้ Guzzle ในการเชื่อมต่อ API แทน cURL

ใช้ Guzzle ในการเชื่อมต่อ API แทน cURL

เครื่องมือคู่บุญอย่างหนึ่งของชาว PHP นั่นคือฟังก์ชัน cURL ที่ว่ากันตามตรงก็ถือว่ามีฟีเจอร์ที่ครบถ้วนสมบูรณ์มากๆ อยู่แล้ว แต่ข้อเสียที่น่ารำคาญอย่างหนึ่งของ cURL นั่นก็คือโค้ดค่อนข้างยาว และอ่านยาก! (เชื่อว่าหลายๆ คนน่าจะเคยงงกับ curl_setopt() ว่าโค้ดหน้าตาแปลกๆ นี้ทำอะไรของมัน) วันนี้จะมาแนะนำทางเลือกหนึ่งที่โค้ดอ่านง่ายกว่า นั่นก็คือ Guzzle อ่านต่อ
Web Development October 13, 2019
การเชื่อมต่อฐานข้อมูล MySQL บน PHP

การเชื่อมต่อฐานข้อมูล MySQL บน PHP

Fatal error: Uncaught Error: Call to undefined function mysql_connect() PHP7 ได้กล่าวไว้ ถ้าคุณเพิ่งจะหัดเขียน PHP แล้วเจอข้อผิดพลาดข้างบน นั่นเป็นเพราะว่าตั้งแต่ PHP 7.0 เป็นต้นมา (ถ้าไม่มีเหตุจำเป็นจริงๆ ไม่มีใครใช้ … อ่านต่อ
Web Development September 21, 2019
การใช้ PSR-4 autoload ใน Composer

การใช้ PSR-4 autoload ใน Composer

ข้อดีอย่างหนึ่งในการเขียนการฟีเจอร์ต่างๆ แยกมาเป็นคลาสคลาสหนึ่ง คือเราสามารถเก็บค่าทุกค่า ฟังก์ชันทุกฟังก์ชัน เอาไว้แค่ในตัวมันได้โดยไม่ต้องกลัวว่ามันจะไปตีกับค่าเดียวกันหรือฟังก์ชันเดียวกัน (จริงๆ มันเรียกว่า property กับ method) ที่อยู่ในคลาสอื่น หรือที่เขาเรียกกันว่า encapsulation ตัวอย่างการทำ encapsulation ที่เราเคยเขียนไว้ คือการใช้ ACF ทำบล็อก Gutenberg … อ่านต่อ
Web Development June 7, 2019
  • Previous
  • 1
  • 2
  • Next

Like us

Like us

Categories

  • Blog
  • Gutenberg
  • Plugins
  • Shortnotes
  • Snippets
  • Web Development
  • WordPress Development

Popular Posts

  • ส่งอีเมลด้วย SendGrid
    ส่งอีเมลด้วย SendGrid
  • array_map() ใน PHP
    array_map() ใน PHP
  • กำหนด URL structure ได้ตามใจด้วย AltoRouter
    กำหนด URL structure ได้ตามใจด้วย AltoRouter
  • การใช้ @media print ในการกำหนด CSS สำหรับพิมพ์และ PDF
    การใช้ @media print ในการกำหนด CSS สำหรับพิมพ์และ PDF
  • การทำ Routing ใน PHP ด้วย AltoRouter
    การทำ Routing ใน PHP ด้วย AltoRouter
  • ทำเว็บให้รองรับ Dark mode ของระบบปฏิบัติการ
    ทำเว็บให้รองรับ Dark mode ของระบบปฏิบัติการ

Archives

  • April 2022
  • January 2021
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • December 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • March 2019
  • February 2019
  • December 2018
  • September 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018

© 2022 WP63

  • หน้าแรก
  • ติดต่อเรา
  • นโยบายความเป็นส่วนตัว
  • ข้อตกลงการใช้งาน
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT
  • Web Development
  • WordPress Development
  • Plugins

Like us

Like us

Categories

  • Blog
  • Gutenberg
  • Plugins
  • Shortnotes
  • Snippets
  • Web Development
  • WordPress Development

Popular Posts

  • ส่งอีเมลด้วย SendGrid
    ส่งอีเมลด้วย SendGrid
  • array_map() ใน PHP
    array_map() ใน PHP
  • กำหนด URL structure ได้ตามใจด้วย AltoRouter
    กำหนด URL structure ได้ตามใจด้วย AltoRouter
  • การใช้ @media print ในการกำหนด CSS สำหรับพิมพ์และ PDF
    การใช้ @media print ในการกำหนด CSS สำหรับพิมพ์และ PDF
  • การทำ Routing ใน PHP ด้วย AltoRouter
    การทำ Routing ใน PHP ด้วย AltoRouter
  • ทำเว็บให้รองรับ Dark mode ของระบบปฏิบัติการ
    ทำเว็บให้รองรับ Dark mode ของระบบปฏิบัติการ

Archives

  • April 2022
  • January 2021
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • December 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • March 2019
  • February 2019
  • December 2018
  • September 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018