Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Maximum execution time of 30 seconds exceeded in /opt/lampp/htdocs/whatsapp/whatsapi/src/whatsprot.class.php on line 306 #1221

Open
galaxyitcenter opened this issue Aug 30, 2017 · 4 comments

Comments

@galaxyitcenter
Copy link

`<?php

require('vendor/autoload.php');
$username = "91932824xxxx";
$nickname = "Rahil";
$password = "lgP2OkhexINDxxxxxxxxxxxxxx"; // The one we got registering the number
$debug = true;

// Create a instance of WhastPort.
$w = new WhatsProt($username, $nickname, $debug);

//$w = new WhatsProt($username,$password, $nickname, $debug);
$events = new MyEvents($w);
$events->setEventsToListenFor($events->activeEvents); //You can also pass in your own array with a list of events to listen too instead.

//Now continue with your script.
$w->connect();
$w->loginWithPassword($password);

$target = '91991336xxxx'; // The number of the person you are sending the message
$message = 'Hi! :) this is a test message';
$w->sendMessage($target , $message);

Above is my code to send`

@carlositos
Copy link

Hi!
I have the same issue. Does anyone fix this?

@jesussales
Copy link

jesussales commented Dec 7, 2017 via email

@alissonpelizaro
Copy link

Just put the following sentence at the top of the your code:

set_time_limit(600);

It's changes the time-out to 10 minutes...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@jesussales @carlositos @galaxyitcenter @alissonpelizaro and others