Hoooray! In former times, you had to say: The server can't know if the client loaded the page in an iframe which makes a lot of sense in a traditional Client-Server modal. But well, the browser decides, if it doesn't tell the server about
PHP
You tried to run php ./bin/console cache:clear (or similar) on a Windows Network by UNC path like //my-network-folder/my-app? Now you're in trouble as the command doesn't work? You tested that it works perfectly in our local copy and is not
Encoding is hard in many cases. Today I ran into one, where we had to save UTF-8 data (from a Drupal website) into an XML document which requires ISO-8859-1 encoding. We're using https://www.php.net/manual/de/class.domdocument.php for that, which seems to have some problems / flaws with such cases, as the following issues show:
Migrating ownCloud to nextcloud typically isn't that hard thank to the nextcloud developers who provide a user friendly migration script: https://nextcloud.com/migration/ Sadly at the moment the migration script only supports ownCloud migrations up to 10.0.x and not 10.x. 1) Old PHP Versions
After fighting a lot with phpcs, intelephense and WSL2 in VSCode, I found vscode-phpcbf and hey, it works! :D immediately! And it shares the Standard with phpcs! https://marketplace.visualstudio.com/items?itemName=persoderlind.vscode…
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in ... If you are running into a memory_limit when using composer, there are many ways to solve the problem. Finally I'm hoping for enhancements in composer to require less memory. But until that I've found a quick solution in bash:
Eine Herausforderung des heutigen Tages lag darin, auf einer PHP-Website eine HTTP-Authentifizierung via PHP umzusetzen, obwohl PHP auf der Seite als CGI läuft. Wie wir wissen, ist das ein Problem da die nötigen Variablen nicht belegt werden: sind stets leer! Zum Glück konnte ich einen Workaround finden:
Today I'd like to tell you about a simple trick, if you use TCPDF and work with HTML to PDF functionality. Sometimes you would wish to create new page and continue your content there. Simply a pagebreak. If you don't have the $pdf object available and want to do everything in code, you may use the HTML Element to control this behaviour.
Dir hat dieser Beitrag Zeit und viele Nerven gespart?
Dann würde ich mich sehr über einen leckeren Kaffee freuen! Oder ein spannendes Tech-Buch aus meiner Wunschliste?