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
?>
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;
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.
Example
<?php
echo print_r(debug_backtrace( DEBUG_BACKTRACE_PROVIDE_OBJECT, 1);
So kann man Variable permanent (Laufzeit) speichern.
Neue Konfigurationsdatei (.ini) erstellen: \etc\php\7.0\cgi\conf.d\meine_eigene.ini
memory_limit = 2G
upload_max_size = 2G
post_max_size = 2G
upload_max_filesize = 2G
max_execution_time = 300
max_input_time = 3600
max_file_uploads = 1000xdebug.max_nesting_level = 512
session.gc_maxlifetime = 86400
# service apache2 reload
Neueste Kommentare
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:
I have a view with a path…
I have a view with a path like
/my-content-export
to export entivies as JSON or CSV.admin_toolbar 3.5.2 is the…
admin_toolbar 3.5.2 is the reason. Patch coming ...
Tools & Settings >> Security…
Tools & Settings >> Security Policy :
Allow only secure FTPS connections
List config vaiables
/usr/sbin/mariadbd --help --verbose | grep "query.*size"
Restart MariaDB / MySQL
Commandline:
MariaDB Restart (after changes in /etc/mysql/db-performance.cnf)
After my changes in /etc/mysql/db-performance.cnf
Error: configure: error: no acceptable C compiler found in $PATH
Error: