When working with JSON data in PHP, you might encounter keys that are not valid PHP identifiers due to special characters, while PHP identifiers are supposed to start with an alpha and not contain a hyphon (e.g $object->1 or $object->user-data).
You can use hooks in SolusVM 2 to automatically run custom scripts before or after specific events take place. Hooks should be set under this directory: /usr/local/solus/hooks/, they can be written using Bash, PHP, Python or else.
Basically what it does is whenever there is an event it sends in stdin a json snap with the event and the action (e.g.: new installation, os reinstall, restart, etc) to all files under the hooks’ folder.
Do you have an image with a white background and you want to remove that whiteness and replace it with transparency? Here is a basic example using jimp on Node.js.
Unable to generate new_cookie_key, hence can not install PrestaShop.
To work around the following error message while auto-installing PS 1.7 using Softaculous. Use the root directory of your domain name or a sub-domain’s.
By default, the ToggleColumn in Laravel Filament is designed to work with boolean-like fields. However, there may be cases where you need to customize it to work with different data like textual fields.
One of the funniest and useful things some users tend to do when having a max connection limitation on MySQL is to create several users cyclically or even randomly.