Skip to content
  • PHP - ChatGPT

    PHP
    1
    0 Votes
    1 Posts
    69 Views
    No one has replied
  • 0 Votes
    1 Posts
    39 Views
    No one has replied
  • PHP Installation

    Pinned PHP
    3
    0 Votes
    3 Posts
    520 Views
    FrankMF

    Falls jemand auch die Warnung in Joomla! bezüglich der php Version 7.4 loswerden möchte, installiert kein php8.1. Damit habe ich eine dicke Fehlermeldung. Es müssen wohl sämtliche Erweiterungen und Templates 8.1 unterstützen, was wohl derzeit noch nicht der Fall ist. Nehmt 8.0, das läuft bei mir aktuell.

    apt install php8.0-common php8.0-mysql php8.0-opcache php8.0-readline php8.0-xml php8.0-xsl php8.0-zip apt install php8.0-cli php8.0-curl php8.0-gd php8.0-intl php8.0-mbstring php8.0-redis apt install php8.0-bcmath php8.0-gmp php8.0-imagick apt install php8.0-fpm
  • PHP Data Objects

    Linux
    4
    0 Votes
    4 Posts
    272 Views
    FrankMF
    Datensatz löschen

    Voraussetzung ist, das man die ID des zu löschenden Eintrages kennt.

    $statement = $pdo->prepare("DELETE FROM feinstaub WHERE id = ?"); $statement->execute(array($id)); if ($statement->execute()) { echo "Der DB-Eintrag wurde erfolgreich gelöscht!"; } else { echo "Bitte den Administrator informieren!"; }
  • Yubikey als 2FA

    PHP
    3
    0 Votes
    3 Posts
    271 Views
    FrankMF

    Die ersten 12 Stellen eines Yubikeys sind immer gleich. Diese 12 Stellen speichern wir in einer Datenbank.

    $otp = substr ($otpKey, 0, 12);

    In der Datenbank speichern.

    //SQL $statement = $pdo->prepare("UPDATE users SET otpKey = :otpKey_neu WHERE id = :id"); $statement->execute(array('otpKey_neu' => $otp, 'id' => $userid)); //Überwachung auf Erfolg if ($statement->execute()) { // DB Eintrag erfolgreich geschrieben echo "YubiKey Passwort erfolgreich gespeichert!"; } else { echo "Datenbank Fehler! Bitte informieren Sie den Administrator."; }

    Ich hoffe, es hilft dem ein oder anderen sich mit diesem Thema etwas zu beschäftigen.

  • Eingabefeld aktivieren

    PHP
    1
    0 Votes
    1 Posts
    190 Views
    No one has replied
  • Wichtige Info

    Pinned PHP
    1
    0 Votes
    1 Posts
    197 Views
    No one has replied
  • Geo Loacation

    PHP
    1
    0 Votes
    1 Posts
    287 Views
    No one has replied
  • PHPMailer

    Moved PHP
    1
    0 Votes
    1 Posts
    418 Views
    No one has replied
  • Wichtige Links zum Coden

    PHP
    1
    0 Votes
    1 Posts
    357 Views
    No one has replied
  • Reload einer PHP Seite verhindern

    PHP
    1
    0 Votes
    1 Posts
    690 Views
    No one has replied
  • PHP Exif Daten aus Bild auslesen

    Moved PHP
    1
    0 Votes
    1 Posts
    463 Views
    No one has replied