Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

sleep() php script causes db to loose connection

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
rustybucket
Smarty Regular


Joined: 28 Jan 2009
Posts: 60

PostPosted: Mon Jan 18, 2010 4:08 pm    Post subject: sleep() php script causes db to loose connection Reply with quote

This is not really a smarty question, more of a php question, maybe a mysql question....?

I have a php script that needs to sleep() for a few seconds on each iteration as it iterates through a foreach statement. When this happens the script looses the db connection.

I'm using the PEAR DB database abstraction layer MySQL and Smarty (and php of course).

Thanks in advance for any guidance or suggestions you guys may be able to provide.

Thanks,

rusty
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP