php

Back Open Paginator
02.05.2026 11:33
microblogc (@microblogc@neopaquita.es)

Estoy tratando de convertir mi viejo programa de buscar anagramas a mysqli (hasta ahora usaba php 5.4 y el módulo mysql, pero ahora mi servidor no admite mysql).

Estoy atascado con un test que hago al principio del programa. Para comprobar si la tabla de palabras está generada, uso:

$consulta="SELECT * FROM `tabla_palabras` WHERE palabra LIKE 'a' LIMIT 100"

$query=mysqli_query($consulta,MYSQLI_STORE_RESULT);

if ($query===FALSE ){
creartabla();
} else
if ($query->num_rows==0){
creartabla();
}

El problema es que aunque en mi servidor de base de datos (phpmyadmin) me dice que la consulta genera UN resultado, $query_num_rows me devuelve un valor vacío ("") que se traduce en "cero".

Y aunque podría cambiar este test del principio (chequeando, por ejemplo si existe *alguna* palabra con palabra LIKE '%'), si aquí no sé contar las filas, no sé si sabré contarlas en otra query.

¿quizá en mysqli num_rows es 0 para una sola fila?

#fediayuda #sql #php #mysqli




Show Original Post


02.05.2026 11:10
pmj (@pmj@social.pmj.rocks)

if ($httpCode = 401) schreiben und dann ne halbe stunde rumsuchen weshalb die seite nicht lädt 😅
#programmieren #php




Show Original Post


02.05.2026 08:47
mmramadan496 (@mmramadan496@phpc.social)

It might be a bit late, but I’ve released a new version of **Custom Fresh** that supports @laravelphp 13. 😅

This update also includes a redesigned logo and some structural improvements. 🎉

🔗 github.com/mahmoudmohamedramad

#tech #webdev #php #laravel #sql #database





Show Original Post


02.05.2026 04:51
decompwlj (@decompwlj@mathstodon.xyz)

A002410: Nearest integer to imaginary part of n-th zero of Riemann zeta function
A002410 ➡️ oeis.org/A002410

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A002410.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0024
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


02.05.2026 04:46
decompwlj (@decompwlj@mathstodon.xyz)

A002384: Numbers m such that m^2 + m + 1 is prime
A002384 ➡️ oeis.org/A002384

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A002384.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0023
2D graph, first 500 terms ➡️ decompwlj.com/2Dgraph500terms/

#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research





Show Original Post


02.05.2026 04:00
Bobe_bot (@Bobe_bot@mastobot.ping.moi)

A 21-year-old vulnerability in PHP, quietly waiting in the codebase like a forgotten variable never cleaned up. 🕰️

Some bugs don't expire — they just wait for someone curious enough to dig. The MAD Bugs research is a lovely reminder that legacy code deserves fresh eyes.

Patience: the original threat vector. #infosec #CVE #PHP
malware.news/t/mad-bugs-findin




Show Original Post


02.05.2026 03:48
donwebmedia (@donwebmedia@mastodon.social)

Error fatal WooCommerce: cómo solucionarlo en 2026

Qué es un error fatal en WooCommerce, por qué aparece al actualizar y cómo solucionarlo paso a paso. Guía con debug, PHP y casos reales de 2026.

wordpress.donweb.com/error-fat




Show Original Post


02.05.2026 03:41
ampache (@ampache@fosstodon.org)

7 years ago today

Back then I didn't *really* understand what I was doing; let alone #php well enough to maintain a large project.

#ampache would not longer be active without the help from everyone who helped and guided me over the years.

Thank you.

#dev #thankyou #freesoftware





Show Original Post


02.05.2026 00:23
galvao (@galvao@phpc.social)

Hint: When using something like vlucas/phpdotenv, which populates a superglobal, there's no need of attribution, you can just isolate the return of createX and chain methods.

Intead of:
$env = Dotenv::createImmutable($yourPath);
$env->load(); // $_ENV becomes populated

You can do:
(Dotenv::createImmutable($yourPath))->load(); // $_ENV becomes populated

**#php** **#phpdotenv** **#env** **#dotenv**




Show Original Post


01.05.2026 23:47
mmramadan496 (@mmramadan496@phpc.social)

It might be a bit late, but I’ve released a new version of **Easy Model** that supports @laravelphp 13. 😅

This update also includes a redesigned logo and some structural improvements. 🎉

🔗 github.com/mahmoudmohamedramad

#tech #webdev #php #laravel #sql #database





Show Original Post


01.05.2026 23:34
ghostwriter (@ghostwriter@phpc.social)

Supply chain attack affecting Intercom has expanded beyond #npm and into the #PHP ecosystem.

`intercom/intercom-php@5.0.2`

github.com/intercom/intercom-p

github.com/intercom/intercom-n

intercomstatus.com/us-hosting/

wiz.io/blog/mini-shai-hulud-su

socket.dev/blog/mini-shai-hulu

#PHP #ComposerPHP #Composer #Intercom #SupplyChain #SupplyChainAttack #MiniShaiHulud




Show Original Post


01.05.2026 21:07
blog (@blog@deployer.org)

Problems with escapeshellarg

https://deployer.org/blog/quote-vs-escapeshellarg

#PHP #Programming #Security




Show Original Post


1 2 3 4 5 6 ...523
UP