PHP Classes

Maximum execution time exceeded on line 627

Recommend this page to a friend!

      SSH in PHP  >  All threads  >  Maximum execution time exceeded on...  >  (Un) Subscribe thread alerts  
Subject:Maximum execution time exceeded on...
Summary:Error when loading
Messages:7
Author:Jack Pettersson
Date:2008-04-08 17:47:55
Update:2009-06-03 15:48:38
 

  1. Maximum execution time exceeded on...   Reply   Report abuse  
Picture of Jack Pettersson Jack Pettersson - 2008-04-08 17:47:56
Hello!

Thank you very much for providing this, it's exactly what I need. However, I get this message when trying to use it.

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/ssh_in_php.php on line 627

Any help is very much appreciated.

  2. Re: Maximum execution time exceeded on...   Reply   Report abuse  
Picture of Jack Pettersson Jack Pettersson - 2008-04-09 11:40:23 - In reply to message 1 from Jack Pettersson
I tried loading the script on another computer (the one that I'm going to use the app on primary) and got another error message:

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/ssh_in_php.php on line 863

Thank you very much for any help in this matter.

  3. Re: Maximum execution time exceeded on...   Reply   Report abuse  
Picture of Martin Filip Martin Filip - 2008-04-16 07:25:47 - In reply to message 2 from Jack Pettersson
Hi,

try using set_time_limit(0) in your script. For more information look at
php.net/function.set-time-limit

  4. Re: Maximum execution time exceeded on...   Reply   Report abuse  
Picture of Jack Pettersson Jack Pettersson - 2008-04-16 20:25:37 - In reply to message 3 from Martin Filip
Ok, so I added set_time_limit(0) right after the initial comment in the script. When trying to run it, I get

Parse error: syntax error, unexpected T_FUNCTION in /var/www/ssh_in_php.php on line 15

And on line 15 is

function blob2integer($b) {

Thank you for the help so far!

  5. Re: Maximum execution time exceeded on...   Reply   Report abuse  
Picture of Martin Filip Martin Filip - 2008-04-17 07:22:31 - In reply to message 4 from Jack Pettersson
Is there a semicolon after command you've added? :D

  6. Re: Maximum execution time exceeded on...   Reply   Report abuse  
Picture of Jack Pettersson Jack Pettersson - 2008-04-17 14:00:41 - In reply to message 5 from Martin Filip
Oh, fuck me. I blame the fact that it was pretty late in the night where I live when I wrote it.

Ok, so the semicolon is added. And since there's no timeout, it's just loading, and by the look of things it will do so in infinity. Suggestions?

  7. Re: Maximum execution time exceeded on...   Reply   Report abuse  
Picture of Kim Juncher Kim Juncher - 2009-06-03 15:48:38 - In reply to message 6 from Jack Pettersson
Now it's a long time since you asked, but try changing the "\$" in ereg("\$", $date) to something, that server ends it's lines with - This could be ">"?