Trim all array elements with PHP:
$trimmed_array = array_map('trim', $fruits);
To see the difference:
Trim all array elements with PHP:
$trimmed_array = array_map('trim', $fruits);
To see the difference:
WGET do:
wget -U 'Mozilla/MyUserAgent' -P /root/t3mp/wget --wait=3 --random-wait -nd -r -l 2 -e robots=off https://example.com
Mysql export kann sehr lange dauert, wenn man viele und große Datenbanken hat. Damit man schnell ein Backup von allen DBs erstellen kann:
mysqldump --opt --quick --all-databases > /root/backup/mysql/alldbs.sql
Wenn User login notwendig ist :
mysqldump -u root -p --opt --quick --all-databases > /root/backup/mysql/alldbs.sql
while :
do
date
echo "Hello "
sleep 5
done
while : ; do date; echo "Hello "; sleep 6; doneSearch for BERLIN in a very big file
cat very-big-bigfile.txt | grep -o -P '.{0,33}BERLIN.{0,44}'
1 * * * * wget -O /dev/null -o /dev/null my-example-website.com
grep -siRlI 'africa' all-documents/ | xargs mv -t documents-africa/
tar --exclude='./dir2ignore' --exclude='./cache_etc' -zcvf /backup/myarchive.tar.gz .
So geht es:
drush php-eval 'my_custom_module_cron();'
Neueste Kommentare
Für Apache 2.4 + Plesk
Für Apache 2.4 + Plesk 18:
Config File: var/www/vhosts/system/test.example.com/conf/httpd.conf
RAM ist 32 MB. Wie kann ich…
RAM ist 32 MB. Wie kann ich es erhöhen?
Short Code w. Radio Buttons, Checkbox, Textarea, Email, Phone
$("input[type='radio']").each(function () {Wildcard
Let’s Encrypt will only accept a wildcard via DNS challenge.
If your Plesk instance can’t create the _acme-challenge.example.com TXT (external DNS), the extension can’t complete validation and will show no success.
Same problem
Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup()set-timezone Europe/Berlin
sudo timedatectl set-timezone Europe/BerlinTry this:1. Go to Tools &…
Try this:
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
php 8.3 apcu
php 8.3 apcu failed
über Plesk hat es geklappt.
phpize failed error?
install:
# sudo apt install php-dev