Your code runs more than 30 seconds.
Try using set_time_limit(n) function.


Niklas


-----Original Message-----
From: Rick [mailto:[EMAIL PROTECTED]] 
Sent: 18. joulukuuta 2001 2:46
To: [EMAIL PROTECTED]
Subject: [PHP] php in free()


I'm running a script that times out durring a certian action.

Fatal error: Maximum execution time of 30 seconds exceeded in
/usr/local/web/htdocs/mail/functions.php on line 1200

The error logs say: php in free(): warning: recursive call.

The offending lines of code, and here's what really gets me, is a simple
while():

while(!feof($socket)){
     $data .= fgets($socket, 1024);
}

Which is just reading data from an SMTP socket. I haven't been able to
find any information about this php in free() error. Any ideas?

Thanks!

dan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to