-
Posts
74 -
Reputation
26 -
Files
1 -
Joined
-
Last visited
-
Days Won
2
Magd Almuntaser last won the day on April 14
Magd Almuntaser had the most liked content!
About Magd Almuntaser
- Birthday 06/28/1989
Recent Profile Visitors
906 profile views
Magd Almuntaser's Achievements
-
I don't exactly know what your problem is. Can you clarify more? Is it when sending a message, opening the website, or something else? It seems your current issue is that you updated the package.json via npm, which you should never do because the script is compatible with the specific vendors listed within it.
-
The problem from nodjs You need to install nodjs 16.2 Only this version is stable .. so after install this version you install (pm2): npm install pm2@latest -g # or yarn global add pm2 # after install pm2 you run this command and change the info to your website: cd /home/username/public_html/whatsappscript pm2 start server.js
-
Look carefully... whose code is longer? We both use functions, but focus on my code. I placed the API outside the function so it can send 1 million numbers. It can link more than one API, so it is not limited to just 10 numbers. Don't forget that I only used CURL and variables, whereas in your code you used env, curl, classes, catch, try, foreach, json_encode, log, is_array, etc. Overall, focus on my code.. it is smaller, easier, and more practical. Try sending 10 messages to 10 people using your code and check the CPU usage while sending just 10 messages. You are consuming a lot of server resources. my friend.. CURL is just a browser.. it doesn't consume anything even if you send 1 million messages. Strength is not in muscles.. strength is in the way you use your mind.
-
You can use my code: <?php function SendWhatsApp($sender_number, $api_key, $number, $text) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://yourwebsite.com/send-message?api_key='.$api_key.'&preview_url=true&sender='.$sender_number.'&number='.$number.'&message='.urlencode($text).''); curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($ch); curl_close($ch); $result = str_replace(" ", "", $result); if($result){ return $result; }else{ return ""; } } // "yournumber", "api key", "recierv number", "msg" echo SendWhatsApp("62888xxxx", "nknfkl345ksdfk4KLhk45", "6281xxxxxx", "Hello World"); ?>
-
-
Wahai saudaraku, saya sudah mengirimi Anda sebuah situs untuk mencoba port tersebut.. lihat komentar saya sebelumnya dan Anda akan menemukan tautannya. Baiklah, ini tautannya sekali lagi.. yougetsignal. com/tools/open-ports/ Masuk ke tautan ini, tuliskan tautan situs Anda dan nomor port, lalu klik "OK". Jika muncul warna hijau, berarti berfungsi, dan jika muncul warna merah, berarti tidak berfungsi.
-
-
I have already told you that these issues you are experiencing are all related to one problem: your WhatsApp server is not working. Go to this website: yougetsignal. com/tools/open-ports/ enter your site's URL, and in the port field, type 3100. If it shows red, it means the WhatsApp server is not working, which indicates that Nodejs is not functioning correctly ..
-
-
-
-
-
becouse your whatsapp server not working you can search in google for (port check) i think the website called yougetsignal and put your website and your whatsapp port 3100 if is not ON you should run this command in SSH in root script if using VPS: node . if shared hosting you can check nodejs from cpanel if working
-
-
it's easy .. install in your vps (nodejs 16) if almalinex 8: curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo -E bash - yum install -y nsolid if ubuntu: curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - apt-get install -y nodejs upload script files and run this in SSH and go to your script root and run: node . don't close SSH window .. and this link in browser: http://youtsite.com/install it's easy .. install in your vps (nodejs 16) if almalinex 8: curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo -E bash - yum install -y nsolid if ubuntu: curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - apt-get install -y nodejs upload script files and run this in SSH and go to your script root and run: node . don't close SSH window .. and this link in browser: http://youtsite.com/install