Step-by-step guides for the work we actually do — Laravel, PHP, WordPress, MySQL, Linux servers, and the occasional rabbit hole. Every command has been run on a real machine; nothing is theoretical.
Submit a form with jQuery by calling $('#form').submit() or .trigger('submit') from your click handler. Includes Bootstrap-modal pattern, requestSubmit, and AJAX…
Store a PHP array in MySQL with json_encode() and a JSON column (or TEXT/LONGTEXT). Read back with json_decode($v, true). Includes…
Stop cron-job output and email spam by redirecting stdout and stderr to /dev/null with >/dev/null 2>&1. Includes errors-only variant and…
Set, get, and delete cookies with JavaScript using small helpers around document.cookie. Includes once-a-day modal example, modern SameSite/Secure attributes, and…
Set A4 paper size in CSS for printing with @page { size: A4 } and a @media print block sized…
Enforce a minimum phone-number length in WooCommerce with server-side validation via woocommerce_checkout_process and client-side pattern/maxlength attributes.
Use a variable as an object key in JavaScript with the ES6 computed-property syntax: { [key]: value }. Includes pre-ES6…
Select the last child with jQuery: $('.parent').children().last() or $('.parent p').last(). Compares :last, :last-child, :last-of-type and shows when each matters.
Select all text in a contenteditable div on click using the Range + Selection API: createRange, selectNodeContents, getSelection. Includes jQuery…
Scroll to an element with jQuery by animating $('html, body').animate({ scrollTop: $('#target').offset().top }). Includes sticky-header offset and native scrollIntoView.
Sign in to your account