php

Back Open Paginator
26.04.2026 04:43
decompwlj (@decompwlj@mathstodon.xyz)

A001857: a(1)=2, a(2)=3; for n >= 3, a(n) is smallest number that is uniquely of the form a(j) + a(k) with 1 <= j < k < n
A001857 ➡️ oeis.org/A001857

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/A001857.
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/A0018
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


26.04.2026 04:39
decompwlj (@decompwlj@mathstodon.xyz)

Decomposition into weight × level + jump of prime numbers:
- a new classification of primes ➡️ decompwlj.com/primedecomp.php
- in 3D - threejs - webGL ➡️ decompwlj.com/3Dgraph/Prime_nu

#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


26.04.2026 04:38
decompwlj (@decompwlj@mathstodon.xyz)

A001855: Sorting numbers: maximal number of comparisons for sorting n elements by binary insertion
A001855 ➡️ oeis.org/A001855

3D graph, threejs - webGL ➡️ decompwlj.com/3Dgraph/Sorting_
3D graph Gen, threejs animation ➡️ decompwlj.com/3DgraphGen/Sorti
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


26.04.2026 03:40
admin (@admin@mastodon.raddemo.host)

How to Create #PHP #Cron Jobs on Linux Server

This guide demonstrates how to create PHP cron jobs on Linux server.
What are PHP Cron Jobs?
Cron is the standard Linux scheduler used to run scripts automatically at defined intervals. PHP cron jobs are commonly used for automation tasks such as backups, billing runs, log cleanup, monitoring scripts, email campaigns, and application maintenance.
READ ALSO: cPanel Shared Hosting Server Specs ...
Continued 👉 blog.radwebhosting.com/create- #cronjob





Show Original Post


26.04.2026 00:08
frikigeekfran (@frikigeekfran@tkz.one)

Hoy se me ha dado por hacer un bloqueador de bots simple para mi web con PHP y JS (pensando en el bloqueador Anubis).

Ahora, falta por hacer la web, que no la tengo en línea desde hace años :NKO_sudor:

También, al final igual termino usando [Altcha](altcha.org) :NKO_picardia:

#tech #php




Show Original Post


25.04.2026 23:30
jasalt (@jasalt@fosstodon.org)

Phel (#PHP #LISP) runs #Clojure Test Suite without compiler errors now:

Passed: 3835
Failed: 275
Error: 88
Total: 4198

Some work to be done still before can be merged upstream.

CI run with full test report:

github.com/jasalt/clojure-test




Show Original Post


25.04.2026 22:35
federation (@federation@deblan.tv)

Le live a démarré !

Développement web

#owncast #streaming #go #php #devop #tech #linux

https://deblan.tv





Show Original Post


25.04.2026 21:41
admin (@admin@mastodon.raddemo.host)

CakePHP vs CodeIgniter: Which #PHP Framework is Best for Development?

This article presents an in-depth comparison of two of the most popular PHP frameworks: #CakePHP vs CodeIgniter. After reading, you will have a better understanding of these two frameworks, including the features, strengths, and weaknesses of each. Both CakePHP and #CodeIgniter are popular with PHP developers, but which PHP framework is best for your next project? ...
Continued 👉 blog.radwebhosting.com/cakephp #websitedevelopment




Show Original Post


25.04.2026 19:45
admin (@admin@mastodon.raddemo.host)

Laravel vs Symfony: A Comprehensive Comparison of #PHP #Frameworks

This article provides a guide concerning #Laravel vs Symfony: a comprehensive comparison of PHP frameworks.
Laravel vs Symfony: A Comprehensive Comparison of PHP Frameworks
Laravel and #Symfony are two of the most popular PHP frameworks, widely used for building modern web applications. Both have strong communities, rich ecosystems, and are frequently chosen by ...
Continued 👉 blog.radwebhosting.com/laravel #websitedevelopment





Show Original Post


25.04.2026 13:35
Edent (@Edent@mastodon.social)

🆕 blog! “You can parse an .env file as an .ini with PHP - but there's a catch”

The humble .env file is a useful and low-tech way of storing persistent environment variables. Drop the file on your server and let your PHP scripts consume it with glee.

But consume it how? There are lots of excellent parsing libraries for PHP. But isn't there a simpler way? Yes! You…

👀 Read more: shkspr.mobi/blog/2026/04/you-c




Show Original Post


25.04.2026 13:34
blog (@blog@shkspr.mobi)

You can parse an .env file as an .ini with PHP - but there's a catch

shkspr.mobi/blog/2026/04/you-c

The humble .env file is a useful and low-tech way of storing persistent environment variables. Drop the file on your server and let your PHP scripts consume it with glee.

But consume it how? There are lots of excellent parsing libraries for PHP. But isn't there a simpler way? Yes! You can use PHP's parse_ini_file() function and it works.

But…

.env and .ini have subtly different behaviour which might cause you to swear at your computer.

Let's take this example:

# This is a comment
USERNAME="edent"

Run $env = parse_ini_file( ".env" ); and you'll get back an array setting the USERNAME to be "edent". Hurrah! Works perfectly. Ship it!

But consider this:

# This is a comment
USERNAME="edent" # Don't use an @ symbol here.

It will happily tell you that the username is "edent# Don"

WTAF?

Here's the thing. The comment character for .ini is not # - it's the semicolon ;

Let me give you some other examples of things which will fuck up your parsing:

# Documentation at https:/example.com/?doc=123
DOCUMENTATION=123
# Set the password
PASSWORD=qwerty;789

That gets us back this PHP array:

[
  '# Documentation at https:/example.com/?doc' => '123',
  'DOCUMENTATION' => '123',
  'PASSWORD' => 'qwerty',
];

When the .ini is parsed, it ignores every line which doesn't have an = sign. It also treats literal semicolons as the start of a new comment until they're wrapped in quotes.

My code highlighter should show you how it is parsed:

# Documentation at https:/example.com/?doc=123
DOCUMENTATION=123
# Set the password
PASSWORD=qwerty;789

It gets worse. Consider this:

# Set the "official" name
REALNAME="Arthur, King of the Britons"

That immediately fails with PHP Warning: syntax error, unexpected '"' in envtest on line 1

You can use single quotes in pseudo-comments just fine, but if the ini parser sees a double quote without an equals then it throws a wobbly.

I'm sure there are several other gotchas as well. For example, there are certain reserved words and symbols you can't used as a key.

This will fail:

# Can we fix it? Yes we can!
FIX=true

It chokes on the exclamation point.

How to solve it (the stupid way)

The comments on an .env file start with a hash.

The comments on an .ini file start with a semicolon.

So, it is perfectly valid for a hybrid file to have its comments start with #;

Look, if it's stupid but it works…

What Have We Learned Here Today?

On next week's show - why you shouldn't store your passwords inside a JPEG!

#php


Show Original Post


25.04.2026 11:54
SenseException (@SenseException@phpc.social)

Nothing much to write about #php. Nothing much to write about at work. Much I can't write about right now. I could post some budgie pics though 😄




Show Original Post


1 ...5 6 7 8 9 10 11 12 13 14 15 ...524
UP