Fint all lines starting with 111
^(111)
Fint other lines (NOT starting with 111)
^(?!111)
Fint all lines starting with 111
^(111)
Fint other lines (NOT starting with 111)
^(?!111)
Problem
/opt/plesk/php/8.1/bin/pecl install apcu
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading apcu-5.1.23.tgz ...
Starting to download apcu-5.1.23.tgz (90,897 bytes)
.....................done: 90,897 bytes
44 source files, building
running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed
Lösung?
PHP Handler List
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:
$fruits = [' apple ', 'orange ', ' mango', 'kiwi' ];
$trimmed_array = array_map('trim', $fruits);
echo " <pre>";
print_r( $trimmed_array );
print_r( $fruits );
Composer Output an PHP-Variable:
<?php
$output = shell_exec( "composer update --dry-run 2>&1" );
echo $output;
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)
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.