php
Filename Sanitizer / Normalizer :
<?php
$str = "Text mit Ä Ö Ü ß é á ú î é ú í ó á ý ";
echo iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str);
// Text mit A O U ss e a u i e u i o a y
?>
Trim all array elements with PHP:
$trimmed_array = array_map('trim', $fruits);
To see the difference:
Composer Output an PHP-Variable:
<?php
$output = shell_exec( "composer update --dry-run 2>&1" );
echo $output;
Fehler:
Error: Maximum function nesting level of '256' reached, aborting! in html_entity_decode() (line 386 of /home/512/web/core/lib/Drupal/Component/Utility/Html.php)
Lösung (php.ini):
xdebug.max_nesting_level = 1024
Lösung:
apt install php-gd
apt install php5.6-gd
apt install php7.4-gd
Manchmal lässt Webmin PHP Dateien herunterladen statt sie auszuführen.
Lösung : Webmin >> Servers >> Apache Webserver >> [Your VirtualServer] >> PHP "engine off " entfernen.
- Debian 10
- PHP 7
- MySQL / MariaDB
- Apache
- Webmin
- Virtualmin
Example
<?php
echo print_r(debug_backtrace( DEBUG_BACKTRACE_PROVIDE_OBJECT, 1);
So kann man Variable permanent (Laufzeit) speichern.
Seitennummerierung
- Vorherige Seite
- Seite 2
- Nächste Seite
Neueste Kommentare
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-devphpize
# sudo apt install…
phpize
# sudo apt install php-devdetails
Problem:
/opt/plesk/php/8.3…
Problem:
Problem:PHP APCu caching…
Problem:
Hilft "cp -avf old new && rm…
Hilft "
cp -avf old new && rm -rvf old"nicht?Same with Drush 13 + PHP 8.3 and my Solution
Same with Drush 13 + PHP 8.3
Error : Failed to install the required package 'RPM' by using AP
Initializing...
Error : Failed to install the required package 'RPM' by using APT. Please install it manually.
Exit
Solution:
Installieren & Aktivieren
So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert: