Blog | falk-m.de
Like other developers, I read articles, test new features, analyze code from others and so on.
Also, I have some interesting code snippets used in projects, if I need them, I always search in old projects.
This blog is my central place now, to collect interesting code snippets, features, etc. |
RSS Feed
Server side event tracking with matomo
from falk-m.de
· 2024-01-31
PHP
if you want to track events, like a click, an error or a login try,
you can do this serverside without cookies, with matomo.
First download and install matomo.
Then you need an authentification tok...
Rewrite to public folder
from falk-m.de
· 2024-01-30
PHP
If you install the symphony framework or a shopware webshop for example, you have to change the routing on our web server, because the applications require, that the webroot be pointed to the '/pub...
Extract SMIME certificate from mail
from falk-m.de
· 2024-01-29
security
In an earlier post, I describe how you can send an s/mime encrypted mail.
If you want to send encrypted mail, you need the public certificate from the recipient's email address.
One way to receive ...
encrypt emails with s/mime on PHP and send with PHPMailer over smtp
from falk-m.de
· 2024-01-25
PHP
php mail can sign messages but not encrypt them.
For a project, I have to encrypt the mail Body with php.
First, I have to receive the public key from the recipient.
In my case, I test it with the ...
store and play video files from the local file system
from falk-m.de
· 2024-01-24
js
For one of my next projects, I have to cache large files locally on the device to use them also in offline mode.
When I stored the files on the local file system, then they were not addicted to th...
The div button :-)
from falk-m.de
· 2024-01-24
js
The div button :-)
I know, never use divs as a button.
But:-) But sometimes you need a hole area as a clickable area.
The problem is, that we can`t use block elements like images insight a button e...
OWAS Top 10
from falk-m.de
· 2024-01-23
security
The owasp is an organization, to increase the security in www.
This presentation has been created for the Webmontag Meetup.
Presentation
Open pdf presentation
Mongo Light
from falk-m.de
· 2023-12-10
PHP
There is a great CRM System EspoCrm.
In Espo, you can administrate the object types, their properties and their relations in the user interface.
This schema is then automatically created in a MySQL...
URL safe encoding
from falk-m.de
· 2023-12-09
PHP
protected function urlSafeBase64Decode(string $data)
{
$value = \base64_decode(\strtr($data, '-_', '+/'));
$data = \json_decode($value);
if (\JSON_ERROR_NONE !== \json_...