when 'pfsockopen' connection stay alive?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
knopkodav
Forum Newbie
Posts: 1
Joined: Tue Sep 04, 2007 1:19 pm
Contact:

when 'pfsockopen' connection stay alive?

Post by knopkodav »

Hello, PHP Experts!

Anybody know how work the 'pfsockopen' function?
Official manual pages and Google search don't highlights this question enough.

I want to understand:
1) Can I use this function in crontabs?
2) I don't want set up connection to remote SMPP server every minute when my cron job start. Is remote server connection stay alive between cron job executions?
3) If not, what PHP+cron ideas/functions/libraries with persistent connections I may use?

Thanks!
Ilya.

P.S.
sorry, my English is in alpha version.
Post Reply