writing.exchange is one of the many independent Mastodon servers you can use to participate in the fediverse.
A small, intentional community for poets, authors, and every kind of writer.

Administered by:

Server stats:

328
active users

#php

22 posts21 participants0 posts today
vga256<p>i have to give <a href="https://dialup.cafe/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> serious credit - I did not specifically write <a href="https://dialup.cafe/tags/kiki" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kiki</span></a> to be platform-independent, and lazily used unixy backslashes everywhere</p><p>and it runs just fine in windows! the php authors put some serious work into automatic platform-independent sanity checks.</p>
Terence Eden<p>I've now published my first library on Packagist!</p><p><a href="https://packagist.org/packages/edent/pretty-print-html" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">packagist.org/packages/edent/p</span><span class="invisible">retty-print-html</span></a></p><p>Feedback, suggestions, corrections, tips, tricks, and praise very much welcome!</p><p><a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTML</span></a> <a href="https://mastodon.social/tags/PrettyPrint" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PrettyPrint</span></a> <a href="https://mastodon.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a></p>
Rivermonster<p>I've never done anything like this, can anyone smarter than me confirm this will work? <a href="https://stackoverflow.com/a/56315478" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">stackoverflow.com/a/56315478</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/html" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>html</span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a></p>
Ben Ramsey<p>In PHP, when declaring the return type of an interface method, if I want to define a fluent interface and say "this method should return the instance of itself," which is best to use in the return type declaration: `self`, `static`, or the actual interface name?</p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a></p>
vga256<p>for the past few years, i'm sure many of you have read my many lamentations about the death of the old, small web many of us grew up with.</p><p>there are tons of static site generators out there, but none of them did what i wanted: something that could build an entire site without futzing with javascript and library dependencies. i wanted something that we would have had in 2005, but didn't have in 2025.</p><p>in january, i decided to do something about it instead of whining. i started gluing together a few php scripts i had been using to build blogs, rss feeds and mini homepages. i even wrote a new mini markup language.</p><p>i thought it would take me a week. it took &gt;3 months. 😅 </p><p>it ran for the past month as globaltalk.network's interactive site, and many of you asked if i'd ever let other people spin up an instance. i can finally say: yes!</p><p>today, kiki is officially finished and released for public use. named after my little black house demon, it's small, fast, and sometimes well behaved. and, it's all written in php without a single external dependency. just unzip and go.</p><p>it's released as shareware - in the oldest, finest, jankiest meaning of the word: you're free to goof around with and share the unregistered version. build your own little kiki instance, and customize the heck out of it until it feels like your own little home in the world wide web:</p><p><a href="http://tomodashi.com/kiki" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">http://</span><span class="">tomodashi.com/kiki</span><span class="invisible"></span></a></p><p><a href="https://dialup.cafe/tags/kiki" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kiki</span></a> <a href="https://dialup.cafe/tags/homepage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homepage</span></a> <a href="https://dialup.cafe/tags/worldWideWeb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>worldWideWeb</span></a> <a href="https://dialup.cafe/tags/smolWeb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>smolWeb</span></a> <a href="https://dialup.cafe/tags/smallWeb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>smallWeb</span></a> <a href="https://dialup.cafe/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a></p>
Sherri W (SyntaxSeed)<p><span class="h-card" translate="no"><a href="https://dotnet.social/@kerrick" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>kerrick</span></a></span> Do your languages learned school count? </p><p>I had: </p><p>- Qbasic *<br>- Turing *<br>- Pascal *<br>- C **<br>- Scheme **<br>- Java **</p><p>To end up with <a href="https://phpc.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JavaScript</span></a> &amp; <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> for my career. 🤩</p><p>* = highschool<br>** = university</p>
Leanpub<p>Medior PHP <a href="https://leanpub.com/b/mediorphp" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">leanpub.com/b/mediorphp</span><span class="invisible"></span></a> by Joseph Kanyo is the featured bundle of ebooks 📚 on the Leanpub homepage! <a href="https://leanpub.com" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">leanpub.com</span><span class="invisible"></span></a> <a href="https://mastodon.social/tags/Php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Php</span></a> <a href="https://mastodon.social/tags/Databases" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Databases</span></a> <a href="https://mastodon.social/tags/Mysql" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Mysql</span></a> <a href="https://mastodon.social/tags/ComputerProgramming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ComputerProgramming</span></a> <a href="https://mastodon.social/tags/Laravel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Laravel</span></a> <a href="https://mastodon.social/tags/Symfony" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Symfony</span></a> <a href="https://mastodon.social/tags/Html" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Html</span></a> <a href="https://mastodon.social/tags/Refactoring" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Refactoring</span></a> <a href="https://mastodon.social/tags/Apis" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Apis</span></a> <a href="https://mastodon.social/tags/ApiDesign" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ApiDesign</span></a> <a href="https://mastodon.social/tags/books" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>books</span></a> <a href="https://mastodon.social/tags/ebooks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ebooks</span></a></p>
Abivia<p>I just realized that I haven't updated the FOSS page on the main website for some time. Added short descriptions for a bunch of things that have been built and updated over the past year: Criteria (conditional logic in JSON), Penknife (a compact Blade-inspired template engine), Money (BCMath with rounding for financial calculations), and Colorspace (conversion between color models and more).</p><p>I've been busier than I thought!</p><p>More at <a href="https://www.abivia.com/foss" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">abivia.com/foss</span><span class="invisible"></span></a></p><p><a href="https://fosstodon.org/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://fosstodon.org/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a></p>
PHP Community<p>Congratulations to <span class="h-card" translate="no"><a href="https://phpc.social/@edorian" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>edorian</span></a></span> and Daniel Scherzer, the “rookie” release managers for PHP 8.5! 🎉🎊👏</p><p><a href="https://news-web.php.net/php.internals/127131" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news-web.php.net/php.internals</span><span class="invisible">/127131</span></a></p><p><a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a></p>
PHP Weekly<p>New writeup: a vulnerability in PHP's extract() function allows attackers to trigger a double-free, which in turn allows arbitrary code execution (native code)</p><p><a href="https://ssd-disclosure.com/ssd-advisory-extract-double-free5-x-use-after-free7-x-8-x/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">ssd-disclosure.com/ssd-advisor</span><span class="invisible">y-extract-double-free5-x-use-after-free7-x-8-x/</span></a></p><p>Discussions: <a href="https://discu.eu/q/https://ssd-disclosure.com/ssd-advisory-extract-double-free5-x-use-after-free7-x-8-x/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://ssd-disclos</span><span class="invisible">ure.com/ssd-advisory-extract-double-free5-x-use-after-free7-x-8-x/</span></a></p><p><a href="https://mastodon.social/tags/netsec" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>netsec</span></a> <a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a></p>
Hunter Skrasek<p>If I wanted to try my hand at generating <a href="https://social.skrasek.us/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> code for something like an SDK generator, where would be some good places to start?</p>
PhpStorm Blog<p>PhpStorm 2025.1 Is Now Available<br><a href="https://techhub.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://techhub.social/tags/PhpStorm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PhpStorm</span></a> #20251 <a href="https://techhub.social/tags/Release" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Release</span></a></p><p><a href="https://blog.jetbrains.com/phpstorm/2025/04/phpstorm-2025-1-is-now-available/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.jetbrains.com/phpstorm/20</span><span class="invisible">25/04/phpstorm-2025-1-is-now-available/</span></a></p>
Monique :coffefied:<p>The 4chan hack is pure gold. "Reports from social media and forum posts suggest 4chan was operating on an outdated version of PHP... it's alleged 4chan was running a nearly decade-old buggy version of PHP and used a deprecated function to interact with its MySQL database." <a href="https://mstdn.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://mstdn.social/tags/Hacking" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Hacking</span></a> <a href="https://mstdn.social/tags/CyberSecurity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CyberSecurity</span></a></p>
ResearchBuzz: Firehose<p>Know Your Meme: April 2025 4chan Hack. “April 2025 4chan Hack refers to memes and jokes about the Soyjak.party community supposedly hacking 4chan, restoring the deleted /QA/ board, and leaking the emails of 4chan moderators, also known as ‘janitors.’ The attackers reportedly exploited outdated PHP code and deprecated MySQL functions in 4chan’s backend, particularly in a core script named […]</p><p><a href="https://rbfirehose.com/2025/04/15/know-your-meme-april-2025-4chan-hack/" class="" rel="nofollow noopener noreferrer" target="_blank">https://rbfirehose.com/2025/04/15/know-your-meme-april-2025-4chan-hack/</a></p>
nerdychip<p><a href="https://mastodon.ie/tags/introduction" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>introduction</span></a> <a href="https://mastodon.ie/tags/introductions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>introductions</span></a> </p><p>Hi Fediverse. </p><p>I'm a Senior Software Developer using <a href="https://mastodon.ie/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> for work and trying to get into <a href="https://mastodon.ie/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a>. </p><p>I live in Ireland since last 10 years. Outside of work I'm into all things nerdy, be it science fiction, video games, model kits.</p>
Daniel Brendel<p>🚀 I have published a new blog post:</p><p>The HortusFox ecosystem 🧬</p><p>➡️ Read it here:<br><a href="https://www.danielbrendel.com/blog/32-the-hortusfox-ecosystem" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">danielbrendel.com/blog/32-the-</span><span class="invisible">hortusfox-ecosystem</span></a></p><p><a href="https://mastodon.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://mastodon.social/tags/indiedev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>indiedev</span></a> <a href="https://mastodon.social/tags/programmer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programmer</span></a> <a href="https://mastodon.social/tags/selfhosted" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>selfhosted</span></a> <a href="https://mastodon.social/tags/selfhosting" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>selfhosting</span></a> <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://mastodon.social/tags/foss" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>foss</span></a> <a href="https://mastodon.social/tags/gardening" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>gardening</span></a> <a href="https://mastodon.social/tags/botany" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>botany</span></a> <a href="https://mastodon.social/tags/horticulture" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>horticulture</span></a> <a href="https://mastodon.social/tags/sustainability" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sustainability</span></a></p>
Timo Tijhof<p>Automattic Transparency Report 2024</p><p>covering government requests, DMCA copyright takedown requests, GDPR, and more, to WordPress.com and Tumblr for the period July-December 2024.</p><p><a href="https://transparency.automattic.com/2025/04/14/transparency-report-update-july-december-2024/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">transparency.automattic.com/20</span><span class="invisible">25/04/14/transparency-report-update-july-december-2024/</span></a></p><p>Full report:<br><a href="https://transparency.automattic.com/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">transparency.automattic.com/</span><span class="invisible"></span></a></p><p><a href="https://fosstodon.org/tags/TransparencyReport" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TransparencyReport</span></a> <a href="https://fosstodon.org/tags/Automattic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Automattic</span></a> <a href="https://fosstodon.org/tags/WordPress" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WordPress</span></a> <a href="https://fosstodon.org/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a></p>
Symfony Station 🇺🇦🇨🇦🇬🇱<p>Insights from the PHP Foundation Executive Director. <a href="https://drupal.community/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a><br><a href="https://dev.to/accesto/insights-from-the-php-foundation-executive-director-33g9" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dev.to/accesto/insights-from-t</span><span class="invisible">he-php-foundation-executive-director-33g9</span></a></p>
Michael T<p>want to work in my team? <a href="https://shopwareag.recruitee.com/l/en/o/44wb3rd51p" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">shopwareag.recruitee.com/l/en/</span><span class="invisible">o/44wb3rd51p</span></a></p><p><a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://phpc.social/tags/shopware" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>shopware</span></a> <a href="https://phpc.social/tags/shopware6" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>shopware6</span></a> <a href="https://phpc.social/tags/FediHire" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FediHire</span></a> <a href="https://phpc.social/tags/fediJobs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fediJobs</span></a></p>
Moritz Strohm<p>The purpose of the script is to generate and execute a Makefile to convert videos for recording VHS tapes - either directly from the computer or via a DVD player.</p><p>Outputting Makefile syntax is pretty easy with PHP: The toString method in the Makefile rule class only needs 5 lines of code. Look for yourself: <a href="https://codeberg.org/ncc1988/analogtape-utils/src/commit/6566e560fad1fea61bef7b32c9211353b572465f/encode_vhs.php#L55" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/ncc1988/analogtap</span><span class="invisible">e-utils/src/commit/6566e560fad1fea61bef7b32c9211353b572465f/encode_vhs.php#L55</span></a></p><p>2/2</p><p><a href="https://kanoa.de/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://kanoa.de/tags/CLI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CLI</span></a> <a href="https://kanoa.de/tags/Makefile" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Makefile</span></a> <a href="https://kanoa.de/tags/Programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a></p>