mobileatom, to Symfony
@mobileatom@flipboard.com avatar
OldGrumpyBitWrangler, to php
@OldGrumpyBitWrangler@mastodon.social avatar

An instance of a popular CMS is used for a website. While analyzing I'm coming across a a table in it's MySQL database where a column called "deleted" is defined as such:

deleted` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'A boolean indicating whether this data item has been deleted‘

🤦‍♂️

There should be a license allowing allowed to write software used by someone else. Like with drivers licenses it needs a points system for violations and license revocation.

enusbaum, to dotnet
@enusbaum@tootsmcgoots.io avatar

You know why PHP is still around? Because it's fucking simple.

The levels of abstraction in Web Frameworks like React/Angular or ASP.NET Core is a little silly. You have to navigate through 4-5 files of logic before you actually get to the rendering of a page.

PHP?

<?php echo "Hello World!"; ?>

If dotnet could give me a syntax and framework as simple as PHP, I think it'd dominate. Just one file (index.cs), not a zillion files and boilerplate.

Call it ASP.NET Min

itsjoshbruce, to php
@itsjoshbruce@phpc.social avatar

Learning how to do a thing.

Pretty sure it’s possible; never tried and haven’t been pulled to do so.

PHP creates sessions. Using cookies, it creates a cookie named: PHPSESSID (or similar).

I’d like to customize this; clean and simple.

Goal: I’d like to not have the PHPSESSID cookie. Not finding it.

Thinking:

  1. Disable session cookie
  2. Implement SessionHandlerInterface
  3. Set mine as the save handler
  4. Pass my session cookie in response header

Feel like I’m missing something.

mobileatom, to php
@mobileatom@flipboard.com avatar

Modern PHP development with DDEV.

https://medium.com/

Posted into SYMFONY FOR THE DEVIL @symfony

noidea, to php

Hello ..

Today I installed 8.3 on my VServer ( Linux) and tried to switch to that version with ln -fs /usr/bin/php83 /usr/bin/php .
Previously I used php 8.2.x

The problem is, 's Admin Page says this:

version 8.2.18
php.ini /etc/php82/php.ini

and in SSH, the php --version command says that:

PHP 8.3.6 (cli) (built: Apr 11 2024 15:12:15) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies

The phpinfo() included in the admin area also says 8.2.18 and I have deleted the php-fpm82 service and added and started the php-fpm83 service and also restarted the php and apache and mariadb services and rebooted the server..

Has somebody got an idea what I am missing?

mobileatom, to php
@mobileatom@me.dm avatar

The WordPress Theme handbook received a whole new chapter about Patterns. https://developer.wordpress.org/themes/patterns/

symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
iCaspar, to php
@iCaspar@phpc.social avatar

Somewhere out there I think there must be a shop that's the kind of . Or is what I'm talking about a unicorn?

Today I start a quixotic quest to find this fabled thing. Reports of sightings appreciated.

Crell, to php
@Crell@phpc.social avatar

Silly me for thinking I couldn't find an ORM I dislike more than the ones I've used in . Then I found Spring Boot / JPA...

This is a whole new level of asinine...

wyri, to php
@wyri@haxim.us avatar

Kinda forgot how much fun it was to write code stitching map tiles together, and also how easy it was. Currently at 82 lines of . Once finished it will be a new package, as the has some massive glaring bug in it that took me 6 years to find. Sprinkling some threads and over this once it's done. The home clusters fans will sing once more

mwop, to php
@mwop@phpc.social avatar

Blogged a bit about ZendHQ, and how I'm priming queues, as well as some of the features I really appreciate as a user.

https://mwop.net/blog/2024-05-07-zendhq-jq-warmup.html

sarah, to php
@sarah@phpc.social avatar

Looking for new contract opportunities to accelerate development teams and modernize PHP applications. Have a need? Get in touch today: http://sarah-savage.com/contact/

denniskoch, to php
@denniskoch@phpc.social avatar

It's nice to see PHP thriving again under the @thephpf. After the efforts in the past and the latest hires I think the development of the language is doing great.

What I'd love to see now, is some focus on:

  1. Marketing: Maybe starting with a modern PHP.net website to get rid of the „PHP is dead“ image and/or more tech content on social media.

  2. Sponsorship for important PHP tools and extensions like Xdebug, PHPStan, PHP CS Fixer, PHPUnit, Rector, to name a few.

javorszky, to php
@javorszky@notacult.social avatar

I wrote a little blurb about my new found fondness of testing in PHP. Previously, almost a decade ago, getting tests to work was a pain. Golang was such a breath of fresh air.

Today, in 2024, testing on PHP is good actually if you use Pest

https://javorszky.co.uk/2024/05/06/pest-in-php-is-good-actually/

sarah, to php
@sarah@phpc.social avatar

What is one article about that you think is a must-read?

ctietze, to php
@ctietze@mastodon.social avatar

A question for more experienced developers than me:

We have this setup where all requests go through a PHP script for authorization (think: cookie) checking before serving files.

That's fine with HTML, but less ideal for 5MB PDFs.

I'm trying to search for ways to use PHP to allow/deny access, but otherwise let the web server (Apache) do its job.

Is there such a facility to rewrite requests for auth, but then go on serve the static files?

jclermont, to php
@jclermont@phpc.social avatar
symfonystation, to Symfony
@symfonystation@newsletter.mobileatom.net avatar
codappix, to php German
@codappix@phpc.social avatar

Keine Hürde zu hoch, keine Herausforderung zu schwer. Zudem sind Probleme nunmal erfunden worden, um sie zu lösen 😉. Bei Anfragen rund um individuelle Webentwicklungen aller Art, gerne wenden an hallo@codappix.com ✅. Wir freuen uns auf deine Herausforderung. #TYPO3 #PHP #opensource #laravel #coding
#website #WebApps #agency #TeamCodappix #digital #CoffeeDrivenDevelopment
#ServerHosting #symfony

jdecool, to php
@jdecool@phpc.social avatar
nshki, to webdev
@nshki@ruby.social avatar

Hi fediverse. My name is Nishiki and I’m a web dev with 15+ years of experience. I’m making myself available as a mentor for one or two motivated individuals looking to land their first junior engineering position. I’m happy to be able to say over the past few years, I’ve mentored 4 wonderful people who have all managed to land their first tech jobs.

Please email me at hello@nshki.com if interested. A boost for reach is much appreciated!

Stubbs, to php
@Stubbs@mastodon.me.uk avatar

types, does the built in server count as a CGI/fastCGI SAPI ? Trying to debug an error that simple says "File not found" with no trace of which fileis missing & I wanted to eqasily enable config option with .user.ini etc ...

mort, to Kotlin
@mort@fosstodon.org avatar

I can't deal with languages with optional semicolons! I like languages without semicolons, but when they're optional, especially if they feel "C-like", I always end up adding semicolons to some lines even when I try to write in a semicolon-less style. I'm writing some now and I decided to just use semicolons consistently because the alternative is seemingly to use them inconsistently.

Strangely, this isn't an issue I have in . I do have it in however.

Crell,
@Crell@phpc.social avatar

@mort I have the same issue going from to . Though not having it in Rust is weird. It's a semicolon language aside from returns, no? Or is it the returns that bug you?

Crell, to php
@Crell@phpc.social avatar

This looks very interesting...

https://github.com/extism/php-sdk

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • hgfsjryuu7
  • magazineikmin
  • osvaldo12
  • everett
  • vwfavf
  • ngwrru68w68
  • Youngstown
  • slotface
  • Durango
  • rosin
  • thenastyranch
  • kavyap
  • PowerRangers
  • Leos
  • DreamBathrooms
  • khanakhh
  • GTA5RPClips
  • modclub
  • mdbf
  • ethstaker
  • tacticalgear
  • InstantRegret
  • normalnudes
  • tester
  • cisconetworking
  • cubers
  • provamag3
  • All magazines