PHP

!php

@kbin.social
Create post
A look at modern PHP

A look at modern PHP

Open link in next tab

A look at modern PHP

https://www.vincentschmalbach.com/a-look-at-modern-php/

PHP has come a long way since its humble beginnings in 1995. While it was originally designed as a simple templating language, PHP has evolved into a full-featured…

A look at modern PHP
Php Serialização

Php Serialização

Open link in next tab

Php Serialização

https://dev.to/slns/php-serializacao-54o0

Serialização e Desserialização em PHP O que é Serialização? Serialização é o...

Php Serialização
How to add visibility to 338 Class Constants in 25 seconds

How to add visibility to 338 Class Constants in 25 seconds

Open link in next tab

How to add visibility to 338 Class Constants in 25 seconds

https://tomasvotruba.com/blog/how-to-add-visbility-to-338-class-constants-in-25-seconds

In PHP, we have classes with methods inside them. Would making all your methods `public` be a good idea? No, because some of them should be used only by the class they're in and not anywhere else. What about class constants?

How to add visibility to 338 Class Constants in 25 seconds
How to switch or update PHP version in Laragon

How to switch or update PHP version in Laragon

Open link in next tab

How to switch or update PHP version in Laragon

https://dev.to/murizdev/how-to-switch-or-update-php-version-in-laragon-1k3n

Laragon is a portable, isolated, fast & powerful universal development environment for PHP,...

How to switch or update PHP version in Laragon
The danger of boolean flags in object methods

The danger of boolean flags in object methods

Open link in next tab

The danger of boolean flags in object methods - Sarah Savage

https://sarah-savage.com/the-danger-of-boolean-flags-in-object-methods/

Developers like to use booleans as flags. They're a convenient way to indicate something as on/off, true/false, yes/no. But the problem is that booleans are not clear from calling code exactly what they do. For example: Does anyone in the calling scope have any idea what the defining scope is doing? Absolutely not. The flag

Tagged Singletons - stitcher.io

Tagged Singletons - stitcher.io

Open link in next tab

Tagged Singletons - stitcher.io

https://stitcher.io/blog/tagged-singletons

A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.

Tagged Singletons - stitcher.io
How to Receive Email from HTML Form Using PHP

How to Receive Email from HTML Form Using PHP

Open link in next tab

How to Receive Email from HTML Form Using PHP

https://dev.to/hmawebdesign/how-to-receive-email-from-html-form-using-php-1g8n

In this post, you will learn how to Receive Email from HTML Form Using PHP. What is PHP...

How to Receive Email from HTML Form Using PHP
Iconv, set the charset to RCE: Exploiting the glibc to hack the PHP engine (part 1)

Iconv, set the charset to RCE: Exploiting the glibc to hack the PHP engine (part 1)

Open link in next tab

Iconv, set the charset to RCE: Exploiting the glibc to hack the PHP engine (part 1)

https://www.ambionics.io/blog/iconv-cve-2024-2961-p1

A few months ago, I stumbled upon a 24 years old buffer overflow in the glibc, the base library for linux programs. Despite being reachable in multiple well-known libraries or executables, it proved rarely exploitable — while it didn't provide much leeway, it required hard-to-achieve preconditions. Looking for targets lead mainly to disappointment. On PHP however, the bug shone, and proved useful in exploiting its engine in two different ways.

Iconv, set the charset to RCE: Exploiting the glibc to hack the PHP engine (part 1)
Fix Your Code With The Debug Backtrace

Fix Your Code With The Debug Backtrace

Open link in next tab

Fix Your Code With The Debug Backtrace

https://alexwebdevelop.activehosted.com/social/58238e9ae2dd305d79c2ebc8c1883422.354

It's easy to debug a single...

Fix Your Code With The Debug Backtrace
How to configure PHP in Airflow?

How to configure PHP in Airflow?

Open link in next tab

How to configure PHP in Airflow?

https://dev.to/darkotodoric/how-to-configure-php-in-airflow-5d9i

Apache Airflow is an open-source platform used for managing complex workflows. It allows users to...

How to configure PHP in Airflow?