Warum liefert "??" anderes Ergebnis als "?:", wenn man sonst identische Werte hat ? Getestet habe ich mit PHP 7.1.4
<?php
$var1 = 0 ?? 123;
$var2 = 0 ?: 123;
echo " $var1 : $var2 ";
// Ergebnis ist 0 : 123
?>
Warum liefert "??" anderes Ergebnis als "?:", wenn man sonst identische Werte hat ? Getestet habe ich mit PHP 7.1.4
<?php
$var1 = 0 ?? 123;
$var2 = 0 ?: 123;
echo " $var1 : $var2 ";
// Ergebnis ist 0 : 123
?>
Ich bekomme diesen Fehler:
PHP Warning: geoip_org_by_name(): Required database not available at /usr/share/GeoIP/GeoIPOrg.dat
Mein PHP-Script:
<?php
Damit man GEOIP-PECL auf Debian zum laufen bringt:
Danach Apache neu starten oder Konfigurationsdatei neu laden.
<?php
echo geoip_country_code_by_name ( $ip );
// Ausgabe sollte zweistellige Ländercode wie DE oder ähnliches sein.
?>
( ! ) Fatal error: Uncaught exception 'RuntimeException' with message 'LocalConfiguration.php exists already' in C:\xampp\typo3_src-6.2.6\typo3\sysext
Windows apache thread stack size
This current value cannot be checked by the system, so please ignore this warning if it is already taken care of: Fluid uses complex regular expressions which require a lot of stack space during the first processing. On Windows the default stack size for Apache is a lot smaller than on UNIX. You can increase the size to 8MB (default on UNIX) by adding the following configuration to httpd.conf and restarting Apache afterwards:
<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>
Fehler:
Calculated absolute path to tslib directory does not exist.
Was sind die Vorteile und Nachteile von Imagemagick gegen GD?
Kann man komplett auf Imagemagick verzichten?
<?php
echo `dir`;
shell_exec('dir');
?>
Beide funktionieren identisch. Wie kann ich `befehl` bzw. Backticks deaktivieren aber shell_exec('befehl') weiter laufen lassen?
Laut meiner Lernunterlagen sind die größte zahlen, die ein gewöhnlicher Computer-System bearbeiten kann:
32bit: 2147483647
64bit: 9223372036854775807
Gilt das genauso für PHP?
Ich möchte 30 Einträge löschen und bekomme folgende Fehlermeldung von phpMyAdmin.
Request Entity Too Large
The requested resource
/phpMyAdmin/tbl_row_action.php
does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit.
Was mache ich falsch?
Neueste Kommentare
Create Sub-Directories with WGET
wget -U 'Mozilla/MyUserAgent' -P MyTempDir123 --wait=0.2 --random-wait -nd -r -x -l 4 -e robots=off --reject
Ignore Binaries, JS, CSS etc
wget -U 'Mozilla/MyUserAgent2024' -P MyOutPutDirectory --wait=1 --random-wait -nd -r -l 2 -e robots=off --reject
Intel(R) Xeon(R) E-2288G CPU @ 3.70GHz
# sysbench --threads="$(nproc)" cpu run
AMD Ryzen 7 PRO 3700 8-Core Processor
# sysbench --threads="$(nproc)" cpu run
Reload .bashrc without logging out
Diese Lösung wird empfohlen aber hat bei mir nicht funktioniert.
Welche Alternative gibt es?
Composer + PHP 8.3
ln -snf /opt/plesk/php/8.3/bin/php /etc/alternatives/php
composer.json
In composer.json, update:
Empty Flood Table
drush sqlq "DELETE FROM flood"
Gmail Apps (SMTP Login):…
Gmail Apps (SMTP Login):
https://security.google.com/settings/security/apppasswords
Problem (symfony_mailer)
Type symfony_mailer
Date Mo, 28. 08 2024 - 10:14
User admin