Page 1 of 1

when 'pfsockopen' connection stay alive?

Posted: Tue Sep 04, 2007 1:25 pm
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.