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?
if ($httpCode = 401) schreiben und dann ne halbe stunde rumsuchen weshalb die seite nicht lädt 😅
#programmieren #php
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. 🎉
🔗 https://github.com/mahmoudmohamedramadan/custom-fresh
#tech #webdev #php #laravel #sql #database

A002410: Nearest integer to imaginary part of n-th zero of Riemann zeta function
A002410 ➡️ https://oeis.org/A002410
3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/A002410.html
3D graph Gen, threejs animation ➡️ https://decompwlj.com/3DgraphGen/A002410.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/A002410.html
#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

A002384: Numbers m such that m^2 + m + 1 is prime
A002384 ➡️ https://oeis.org/A002384
3D graph, threejs - webGL ➡️ https://decompwlj.com/3Dgraph/A002384.html
3D graph Gen, threejs animation ➡️ https://decompwlj.com/3DgraphGen/A002384.html
2D graph, first 500 terms ➡️ https://decompwlj.com/2Dgraph500terms/A002384.html
#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

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
https://malware.news/t/mad-bugs-finding-and-exploiting-a-21-year-old-vulnerability-in-php/106615
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.
https://wordpress.donweb.com/error-fatal-woocommerce-causas-soluciones/
#errorfatal #woocommerce #php #debugwordpress #troubleshooting
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.

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**
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. 🎉
🔗 https://github.com/mahmoudmohamedramadan/easy-model
#tech #webdev #php #laravel #sql #database

Supply chain attack affecting Intercom has expanded beyond #npm and into the #PHP ecosystem.
`intercom/intercom-php@5.0.2`
https://github.com/intercom/intercom-php/security/advisories/GHSA-gr3r-crp5-qrrm
https://github.com/intercom/intercom-node/security/advisories/GHSA-54pg-9963-v8vg
https://www.intercomstatus.com/us-hosting/incidents/01KQFN6VS6ARP1XBR1K1SBYY59
https://www.wiz.io/blog/mini-shai-hulud-supply-chain-sap-npm
https://socket.dev/blog/mini-shai-hulud-packagist-malicious-intercom-php-package-compromise
#PHP #ComposerPHP #Composer #Intercom #SupplyChain #SupplyChainAttack #MiniShaiHulud
Problems with escapeshellarg
https://deployer.org/blog/quote-vs-escapeshellarg