GyaanSetu PHP

PHP, Laravel and WordPress.

28 articlesDeep, practical knowledge

PHP વર્કર્સ બચાવવા અને CPU સ્પાઇક્સ રોકવા માટે સર્વર પર wp-cron.php ને બ્લોક કરો

DISABLE_WP_CRON = true માત્ર વર્ડપ્રેસને તેની પોતાની લૂપબેક રિક્વેસ્ટ મોકલતા અટકાવે છે; wp-cron.php URL હજુ પણ સુલભ રહે છે અને હુમલાખોરો દ્વારા તેના પર હુમલો કરીને PHP વર્કર્સને ખતમ કરી શકાય છે, જેનાથી શેર કરેડ હોસ્ટ પર denial-of-service જેવી સમસ્યા ઊભી થઈ શકે છે.

PHP · 4 min read

મેજન્ટો ડેવલપરે DB કોલ્સ 300 થી ઘટાડીને 1 કર્યા, પરંતુ સ્ટોક બહારના ઉત્પાદનો ગાયબ થઈ ગયા

દરેક ઉત્પાદન માટેના 300 રિપોઝિટરી કોલ્સને બદલે એક કલેક્શન ક્વેરીનો ઉપયોગ કરવાથી ક્વેરીઝમાં મોટો ઘટાડો થયો, પરંતુ મેજન્ટોના ઇન-બિલ્ટ સ્ટોક ફિલ્ટરે શૂન્ય જથ્થાવાળા દરેક SKU ને દૂર કરી દીધા, જેના કારણે ગ્રાહકોએ અધૂરા કેટલોગનો સામનો કરવો પડ્યો.

PHP · 3 min read

Croatia’s 2026 E-Invoice Rule Forces PHP Apps to Rewrite 62 Validation Rules

From 1 January 2026 every B2B transaction in Croatia must pass a Schematron file written in XSLT 2.0, but PHP’s built-in libxslt only supports XSLT 1.0. Developers must either add a native Saxon-C extension, call an external service, or re-code the 62 checks in PHP to keep invoicing alive.

PHP · 4 min read

Cloudflare Workers એ વીડિયો સાઇટના થંબનેલ CPU વપરાશને શૂન્ય કરી દીધો

થંબનેલ જનરેશનને Cloudflare Workers પર ખસેડવાથી, વીડિયો-હોસ્ટિંગ પ્લેટફોર્મે તેના ઓરિજિન સર્વર્સ પરનો તમામ ઈમેજ-પ્રોસેસિંગ લોડ દૂર કર્યો, 96% એજ કેશ હિટ રેટ પ્રાપ્ત કર્યો અને વિશ્વભરમાં સતત સબ-સેકન્ડ ઈમેજ રિસ્પોન્સ આપ્યા.

PHP · 3 min read

Your file exists() Is Secretly a Network Call

Your file exists() Is Secretly a Network Call You write this line a thousand times: if ( file exists( $path ) ) { It looks safe. It looks fast. But if $path points to an S3 bucket…

PHP · 2 min read

PHP Adds Native Polling API, Giving Fibers OS-Level Speed

The newly merged Polling API wraps epoll, kqueue and IOCP, letting the event loop resume fibers with a single system call. Benchmarks show concurrency overhead drops to zero and CPU usage stays flat even with dozens of streams.

PHP · 3 min read