php

Back Open Paginator
30.08.2025 21:57
ngate (@ngate@mastodon.social)

🎩🚀 Behold the miraculous of tech: a , , and jamboree, promising and bug-free code. Apparently, the secret sauce to success is to mix everything under the sun and hope for the best, because why not? 🤷‍♂️🚀
yekdeveloper.com/p/4-the-rise-




Show Original Post


30.08.2025 21:56
hunter (@hunter@social.skrasek.us)

I appreciate the attempt #ai but this is not valid #PHP syntax. But hey, a man can dream right? Maybe one day we'll get this. One day





Show Original Post


30.08.2025 21:09
finner (@finner@appdot.net)

Trying to figure out #JSON and how to use it with #PHP. If I wanted to have a log file of entries, is this the proper structure? I thought this would be an object of objects that gets turned into an array of arrays with `json_decode()`, but the result is coming out `NULL`.





Show Original Post


30.08.2025 19:43
anuragg (@anuragg@mastodon.social)

Stop just consuming technology. Learn how things work and build a better and fair digital ecosystem.

makertube.net/w/9n7Uy3LXXw7qyW




Show Original Post


30.08.2025 19:37
w (@w@makertube.net)

Server-Side Pagination Tutorial | Javascript, PHP and MySQL

makertube.net/w/9n7Uy3LXXw7qyW




Show Original Post


30.08.2025 17:53
dabiddo (@dabiddo@mstdn.io)

I used #rectorPHP last month to upgrade a #laravel 8 app to 12, it was really intuitive and easy, after upgrading I just had to fix deprecated syntax and remove deprecated libraries and bingo, I also installed #phpstan to enforce code quality 👍 ... #php

Starting with Rector PHP: Improving Your PHP Code with Automation - DEV Community

dev.to/robertobutti/starting-w




Show Original Post


30.08.2025 15:03
dantleech (@dantleech@fosstodon.org)

i really wish `match` supported bracketed branches in #php - yes I _could_ use `match` but guess I'm going to use if statements - and on that note I really wish if statements were expressions. (yeah, I want PHP to be more like Rust)




Show Original Post


30.08.2025 13:42
michael (@michael@mstdn.thms.uk)

Thankfully @valorin just recently published this amazing In Depth article with a really really good walkthrough on how you can enable 2FA in your Laravel app yourself. I thoroughly recommend it!

securinglaravel.com/in-depth-s

#laravel #php #2fa




Show Original Post


30.08.2025 13:38
michael (@michael@mstdn.thms.uk)

I was on holiday last week so didn’t notice it then, but what a huge shame to see the 2FA PR declined for Laravel!

It looked really good, and 2FA support missing out of the box is such a major shortcoming in Laravel!

I wonder if there’s a good reason for this, or of it’s just Taylor being Taylor again…

github.com/laravel/livewire-st

#laravel #php #2fa




Show Original Post


30.08.2025 11:17
matejkastner (@matejkastner@mas.to)

😱 Máš poslední 2️⃣ dny na nákup early bird vstupenek na letošní 🩵 TechMeetup konferenci 2025 - největší IT event na severní Moravě, kde vystoupí nespočet odborníků z vývoje, #devops, #uxui, #agile, #php & businessu..

Neváhej 👉 goout.net/cs/techmeetup-ostrav

⏱️ jen do neděle 31.8. za 990,- / 490,- Kč

🤷‍♂️ od 1. září to bude dražší..





Show Original Post


30.08.2025 10:55
k47 (@k47@margaras.k47.cz)

fun little php detail

if i run this

$arr = [];
for ($i = 0; $i < 1_000_000; $i++) $arr[] = str_repeat('*', 3041);
$arr = null;

final resident set size (amount of used physical memory) is something like 33 MB

but if i run this

$arr = [];
for ($i = 0; $i < 1_000_000; $i++) $arr[] = str_repeat('*', 3040);
$arr = null;

final RSS is 3 GB

it's caused by the fact that php never releases memory chunks (2 MB pages) that were used for small allocations.
which is ok for web requests that run only for a bit (it also simplifies the common case of small objects allocation) but might cause problems for some long running scripts.

#PHP




Show Original Post


30.08.2025 10:03
firusvg (@firusvg@mastodon.social)

was created as a dead language 😜





Show Original Post


1 ...458 459 460 461 462 463 464 465 466 467 468 ...524
UP