Gusik Prasetyo Posted August 28 Share Posted August 28 is it OK to delete message history from phpMyadmin? Quote Link to comment Share on other sites More sharing options...
JangE Posted August 28 Share Posted August 28 (edited) saya coba gunakan script lain untuk blasting sebagai perbandingan, karena penasaran mungkin hosting saya . untuk MPWA v7.0.0.9 saya coba js yang ini, cron jobs untuk test server per 0,30 * * * * curl -s "http://domain.com/send-message?api_key=APIKEY&sender=6281212346&number=628123456&message=TESTPESAN" dari siang tadi masih berjalan dengan baik Kalau ada down akan saya update disini lagi. semoga baik2 saja server.js Edited August 28 by JangE 1 Quote Link to comment Share on other sites More sharing options...
angga turki Posted August 28 Share Posted August 28 4 minutes ago, JangE said: saya coba gunakan script lain untuk blasting sebagai perbandingan, karena penasaran mungkin hosting saya . untuk MPWA v7.0.0.9 saya coba js yang ini, cron jobs untuk test server per 0,30 * * * * curl -s "http://domain.com/send-message?api_key=APIKEY&sender=6281212346&number=628123456&message=TESTPESAN" dari siang tadi masih berjalan dengan baik Kalau ada down akan saya update disini lagi. semoga baik2 saja server.js 2.9 kB · 0 downloads Di saya tahan 2 hari, setelah itu idle lagi server.js nya, Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 28 Share Posted August 28 51 minutes ago, Gusik Prasetyo said: is it OK to delete message history from phpMyadmin? I always do it. Just click empty Quote Link to comment Share on other sites More sharing options...
JangE Posted August 28 Share Posted August 28 6 minutes ago, angga turki said: Di saya tahan 2 hari, setelah itu idle lagi server.js nya, thank you mas, masih nunggu Quote Link to comment Share on other sites More sharing options...
Gusik Prasetyo Posted August 28 Share Posted August 28 44 minutes ago, JangE said: saya coba gunakan script lain untuk blasting sebagai perbandingan, karena penasaran mungkin hosting saya . untuk MPWA v7.0.0.9 saya coba js yang ini, cron jobs untuk test server per 0,30 * * * * curl -s "http://domain.com/send-message?api_key=APIKEY&sender=6281212346&number=628123456&message=TESTPESAN" dari siang tadi masih berjalan dengan baik Kalau ada down akan saya update disini lagi. semoga baik2 saja server.js 2.9 kB · 0 downloads di tunggu laporannya mas 38 minutes ago, Unicode said: I always do it. Just click empty awesome. thanks mate, hampir saja klik "delete". you save my day. thanks 1 Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 29 Share Posted August 29 (edited) 10 hours ago, Gusik Prasetyo said: di tunggu laporannya mas awesome. thanks mate, hampir saja klik "delete". you save my day. thanks Ini ada cara simple ada script php yg aku pake sih, tempatkan di subdomain lain saja asalkan data sql sama dicoba aja: <?php // Konfigurasi database $host = 'localhost'; // Ganti dengan host Anda $dbname = 'your_database'; // Ganti dengan nama database Anda $user = 'your_username'; // Ganti dengan username Anda $pass = 'your_password'; // Ganti dengan password Anda // Koneksi ke database try { $pdo = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Periksa jika tombol submit ditekan if (isset($_POST['submit'])) { // Query untuk mengosongkan tabel $sql = "TRUNCATE TABLE message_histories"; // Eksekusi query $pdo->exec($sql); $message = "Tabel 'message_histories' telah dikosongkan."; } } catch (PDOException $e) { $message = "Error: " . $e->getMessage(); } // Tutup koneksi $pdo = null; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Clear Table</title> </head> <body> <h1>Clear Message Histories Table</h1> <form action="" method="post"> <input type="submit" name="submit" value="Clear Table"> </form> <?php if (isset($message)): ?> <p><?php echo htmlspecialchars($message); ?></p> <?php endif; ?> </body> </html> Sebenarnya yg saya request ke master @Magd Almuntaser dulu untuk mengosongkan, namun hanya diberikan untuk menghapus peruser saja, sehingga admin tidak dapat mengosongkan semua history. Edited August 29 by Unicode 1 Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 29 Share Posted August 29 (edited) @Gusik Prasetyo ini untuk versi tanpa tombol. Buat saja nama filenya misal deletehistory.php <?php // Konfigurasi database $servername = "localhost"; // Ganti dengan nama server database Anda $username = "root"; // Ganti dengan nama pengguna database Anda $password = ""; // Ganti dengan kata sandi database Anda $database = "nama_database"; // Ganti dengan nama database Anda // Membuat koneksi $conn = new mysqli($servername, $username, $password, $database); // Mengecek koneksi if ($conn->connect_error) { die("Koneksi gagal: " . $conn->connect_error); } // Query untuk mengosongkan tabel $sql = "TRUNCATE TABLE message_histories"; // Menjalankan query if ($conn->query($sql) === TRUE) { echo "Tabel message_histories berhasil dikosongkan."; } else { echo "Terjadi kesalahan: " . $conn->error; } // Menutup koneksi $conn->close(); ?> Upload ke subdomain yang lain , dan tinggal pasang saja di cronjob curl “http://sub.domain.com/deletehistory.php” misal disetting setiap 1 hari sekali / 1 minggu sekali. nanti akan otomatis mengosongkan history pesan wanya . gampangkan? Haha Edited August 29 by Unicode Quote Link to comment Share on other sites More sharing options...
JangE Posted August 29 Share Posted August 29 10 hours ago, Gusik Prasetyo said: di tunggu laporannya mas awesome. thanks mate, hampir saja klik "delete". you save my day. thanks bobo lagi ternyata, otw Om 1 Quote Link to comment Share on other sites More sharing options...
Gusik Prasetyo Posted August 29 Share Posted August 29 5 minutes ago, Unicode said: @Gusik Prasetyo ini untuk versi tanpa tombol. Buat saja nama filenya misal deletehistory.php <?php // Konfigurasi database $servername = "localhost"; // Ganti dengan nama server database Anda $username = "root"; // Ganti dengan nama pengguna database Anda $password = ""; // Ganti dengan kata sandi database Anda $database = "nama_database"; // Ganti dengan nama database Anda // Membuat koneksi $conn = new mysqli($servername, $username, $password, $database); // Mengecek koneksi if ($conn->connect_error) { die("Koneksi gagal: " . $conn->connect_error); } // Query untuk mengosongkan tabel $sql = "TRUNCATE TABLE message_histories"; // Menjalankan query if ($conn->query($sql) === TRUE) { echo "Tabel message_histories berhasil dikosongkan."; } else { echo "Terjadi kesalahan: " . $conn->error; } // Menutup koneksi $conn->close(); ?> Upload ke subdomain yang lain , dan tinggal pasang saja di cronjob curl “http://sub.domain.com/deletehistory.php” misal disetting setiap 1 hari sekali / 1 minggu sekali. nanti akan otomatis mengosongkan history pesan wanya . gampangkan? Haha Thanks mas bro. You help me a lot. I will try it after at home. Quote Link to comment Share on other sites More sharing options...
Avina Kefin Posted August 29 Share Posted August 29 9 minutes ago, Gusik Prasetyo said: Thanks mas bro. You help me a lot. I will try it after at home. Oke sama sama 1 Quote Link to comment Share on other sites More sharing options...
Gusik Prasetyo Posted August 29 Share Posted August 29 Finally my 7.0.9 always connect without idle. Connect more than 24 hours Thanks mas @Enno The Explorer Quote Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 29 Share Posted August 29 (edited) 19 minutes ago, Gusik Prasetyo said: Finally my 7.0.9 always connect without idle. Connect more than 24 hours Thanks mas @Enno The Explorer wkwkw..yes sama2 mas brohku... pakai cronjob juga atau udah engga sama sekali..node berapa? sy udah upgrade juga idcloushostnya ke Enterpreneur Pro , Disk 7 GB dan RAM 2 GB, murah cuma 50k Edited August 29 by Enno The Explorer Quote Link to comment Share on other sites More sharing options...
Gusik Prasetyo Posted August 29 Share Posted August 29 2 minutes ago, Enno The Explorer said: wkwkw..yes sama2 mas brohku... pakai cronjob juga atau udah engga sama sekali..node berapa? I follow all your instructions mas bro Quote Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 29 Share Posted August 29 (edited) 13 minutes ago, Gusik Prasetyo said: I follow all your instructions mas bro wkwkwkkw... oh iya temen2 , sebelum ganti server.js jangan lupa node.js harus di matikan dulu dan logout whatsappnya dan setelah node,js di aktifkan, konekkan lagi whatsappnya..lakukan cronjob 1 menit dan hasilnya 24 jam berjalan tanpa henti beberpa whatsapp seperti whatsjet dll infonya bisa button message , kenapa mpwa ga bisa ya? apa beda librarynya? Edited August 29 by Enno The Explorer Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 29 Share Posted August 29 10 minutes ago, Enno The Explorer said: wkwkwkkw... oh iya temen2 , sebelum ganti server.js jangan lupa node.js harus di matikan dulu dan logout whatsappnya dan setelah node,js di aktifkan, konekkan lagi whatsappnya..lakukan cronjob 1 menit dan hasilnya 24 jam berjalan tanpa henti beberpa whatsapp seperti whatsjet dll infonya bisa button message , kenapa mpwa ga bisa ya? apa beda librarynya? bisa kok button, aku coba ke iOS lancar2 aja. kalo ke android memang gk masuk. Quote Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 29 Share Posted August 29 (edited) 6 minutes ago, Unicode said: bisa kok button, aku coba ke iOS lancar2 aja. kalo ke android memang gk masuk. Ini pakai whatsjet mas @JangE masuk buttonya di android , ada footernya juga. Tuan @Magd Almuntaser mungkin tau solusinya Edited August 29 by Enno The Explorer 1 Quote Link to comment Share on other sites More sharing options...
Avina Kefin Posted August 29 Share Posted August 29 48 minutes ago, Gusik Prasetyo said: Finally my 7.0.9 always connect without idle. Connect more than 24 hours Thanks mas @Enno The Explorer pakai vps cpu selalu load 100% ini masa minta yang 3 core keatas ya bang Quote Link to comment Share on other sites More sharing options...
Unicode Posted August 29 Share Posted August 29 (edited) 18 minutes ago, Enno The Explorer said: Ini pakai whatsjet mas @JangE masuk buttonya di android , ada footernya juga. Tuan @Magd Almuntaser mungkin tau solusinya Semalam master @Magd Almuntaser ujicoba dengan library baru, tp malah tidak bisa jalan wa nya. Dan berat bgt akhirnya ini dia coba lg dengan library baleys terbaru. jika lancar baru akan dirilis ke public Edited August 29 by Unicode Quote Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 29 Share Posted August 29 1 minute ago, Avina Kefin said: pakai vps cpu selalu load 100% ini masa minta yang 3 core keatas ya bang jangan pakai VPS mas..pakai hosting aja..lancar jaya.. Quote Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 29 Share Posted August 29 3 minutes ago, Unicode said: Semalam master @Magd Almuntaser ujicoba dengan library baru, tp malah tidak bisa jalan wa nya. Dan berat bgt akhirnya ini dia coba lg dengan library baleys terbaru. jika lancar baru akan dirilis ke public mudah2an ya bisa lancar bagus lagi tanpa cronjob kedepanya , komplt fiturnya ..krn message button dan footer ini selalu digunakan , sy yakinlah klo tuan @Magd Almuntaser Insya Allah bisa Quote Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 29 Share Posted August 29 10 minutes ago, Avina Kefin said: pakai vps cpu selalu load 100% ini masa minta yang 3 core keatas ya bang pakai idcloudhost udah sy wa Quote Link to comment Share on other sites More sharing options...
DW Members Magd Almuntaser Posted August 29 Author DW Members Share Posted August 29 3 hours ago, Unicode said: Ini ada cara simple ada script php yg aku pake sih, tempatkan di subdomain lain saja asalkan data sql sama dicoba aja: <?php // Konfigurasi database $host = 'localhost'; // Ganti dengan host Anda $dbname = 'your_database'; // Ganti dengan nama database Anda $user = 'your_username'; // Ganti dengan username Anda $pass = 'your_password'; // Ganti dengan password Anda // Koneksi ke database try { $pdo = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Periksa jika tombol submit ditekan if (isset($_POST['submit'])) { // Query untuk mengosongkan tabel $sql = "TRUNCATE TABLE message_histories"; // Eksekusi query $pdo->exec($sql); $message = "Tabel 'message_histories' telah dikosongkan."; } } catch (PDOException $e) { $message = "Error: " . $e->getMessage(); } // Tutup koneksi $pdo = null; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Clear Table</title> </head> <body> <h1>Clear Message Histories Table</h1> <form action="" method="post"> <input type="submit" name="submit" value="Clear Table"> </form> <?php if (isset($message)): ?> <p><?php echo htmlspecialchars($message); ?></p> <?php endif; ?> </body> </html> Sebenarnya yg saya request ke master @Magd Almuntaser dulu untuk mengosongkan, namun hanya diberikan untuk menghapus peruser saja, sehingga admin tidak dapat mengosongkan semua history. Yes.. what I did was correct.. every user deletes his message history.. imagine you created a user account on one of the sites and sent messages and your message history was there.. and suddenly you can no longer find them because the administrator deleted them so this is why every user deletes his message history.. 22 minutes ago, Enno The Explorer said: mudah2an ya bisa lancar bagus lagi tanpa cronjob kedepanya , komplt fiturnya ..krn message button dan footer ini selalu digunakan , sy yakinlah klo tuan @Magd Almuntaser Insya Allah bisa Insyallah saya akan mencoba 1 Quote Update Whatsapp Gateway Multi Device (Magd Version) v8.0.0 Link to comment Share on other sites More sharing options...
Unicode Posted August 29 Share Posted August 29 18 minutes ago, Magd Almuntaser said: Yes.. what I did was correct.. every user deletes his message history.. imagine you created a user account on one of the sites and sent messages and your message history was there.. and suddenly you can no longer find them because the administrator deleted them so this is why every user deletes his message history.. Insyallah saya akan mencoba Yes it very help me for create auto delete for history because sometime my friend use it for blast many number and also my ping cron job. It makes database size bigger and bigger, with auto delete history it become easy Quote Link to comment Share on other sites More sharing options...
Enno The Explorer Posted August 29 Share Posted August 29 29 minutes ago, Unicode said: Yes it very help me for create auto delete for history because sometime my friend use it for blast many number and also my ping cron job. It makes database size bigger and bigger, with auto delete history it become easy Untuk delete message ini, bener tuan @Magd Almuntaser, setiap user menghapus histori messagenya sendiri. Klo kita mau delete semua pesan yang ada ,mungkin bs langsung di database phpmyadminnya Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.