zdgtl 11 months ago
zdgtl #coding

Menambahkan baris code kedalam file

<?php
// Nama file yang ingin dimodifikasi
$filename = 'wp-config.php';

// Baris yang ingin ditambahkan
$newLines = "
define('JWT_AUTH_SECRET_KEY', 'your-top-secret-key');
define('JWT_AUTH_CORS_ENABLE', true);
define('DISALLOW_FILE_EDIT', true);
define('WP_AUTO_UPDATE_CORE', true);
define('DISALLOW_FILE_MODS', true);
define( 'WP_CACHE', true );
";

// Buka file untuk ditambahkan (append)
$file = fopen($filename, 'a');

// Cek apakah file berhasil dibuka
if ($file) {
   // Tambahkan baris baru
   fwrite($file, $newLines);

   // Tutup file
   fclose($file);

   echo "Baris berhasil ditambahkan ke $filename!";
} else {
   echo "Tidak dapat membuka file $filename!";
}
?>
0
485
Cara Install C9 di Ubuntu

Cara Install C9 di Ubuntu

1743468932.jpg
zdgtl
11 months ago
Remote upload PHP Script

Remote upload PHP Script

1743468932.jpg
zdgtl
11 months ago
Logs Cleaner

Logs Cleaner

1743468932.jpg
zdgtl
11 months ago

PMA Multiple Check

1743468932.jpg
zdgtl
5 months ago
video

Cara membuat Google Drive API

zdgtl
zdgtl
1 year ago