안녕하세요. PHP를 사용하여 whatsapp 메시지를 보내려고합니다. 이 코드PHP를 사용하여 whatsapp 메시지 보내기
<?php
require_once 'Chat-API-master/src/whatsprot.class.php';
$username = "6285648145xxx";
$nickname = "ardi";
$password = "password"; // The one we got registering the number
$debug = true;
// Create a instance of WhastPort.
$w = new WhatsProt($username, $nickname, $debug);
$w->connect(); // Connect to WhatsApp network
$w->loginWithPassword($password); // logging in with the password we got!
$target = '62811304xxxx'; // The number of the person you are sending the message
$message = 'Hi! :) this is a test message';
$w->sendMessage($target , $message);
?>
를 실행하지만 난 내 브라우저
tx <stream:features></stream:features>
tx <auth user="6285648145xxx" mechanism="WAUTH-2"></auth>
rx <from s.whatsapp.net=""></from>
rx <stream:features></stream:features>
rx <challenge>376a507c7e915642d85255fe96cb1d101fa23819</challenge>
tx <response>200e09fa50b7c6a3fa3416878f1e165e8d7670f054ddeaa1c77278a5f8e5b881f4f9f75dce809f42cbdcf17931db8c15641399488b90e9cb74e87de94560802f98bb028af9b5967403fb278c28e06c</response>
Fatal error: Maximum execution time of 30 seconds exceeded in D:\XAMPP\htdocs\waonline\Chat-API-master\src\whatsprot.class.php on line 2609
무슨 일이야에서이 코드를 결과가 ?? 저에게 해결책을주십시오. 감사
숨기기 암호를 실행하는 데 시간이 너무 오래 걸리는 추가하면 올바른 – devpro
그럼 당신은 당신의 설정에 의해 허용 PHP 스크립트의 기본 최대 런타임을 초과했습니다. 그건 고칠 수 있지만 실제로 스크립트를 실행하는 데 30 초가 충분하지 않은 이유를 보여주는 코드에서 볼 수 없습니다. 스크립트의 모든 코드가 이와 같습니다. – RiggsFolly
[tag : android] 태그가 필요한 이유는 무엇인가요? – RiggsFolly