Save/serialize resource-type

Reply

Join Date: Sep 2008
Posts: 31
Reputation: rmlopes is an unknown quantity at this point 
Solved Threads: 0
rmlopes rmlopes is offline Offline
Light Poster

Save/serialize resource-type

 
0
  #1
Mar 11th, 2009
Hello

I have a web application developed with php, using the Zend Framework. This application has a page that launches an external, C++, application.
I was trying to do this using proc_open to start the job in background mode, save the handler to keep track of the process that will take at least half an hour running, and this way, I would be able to track the opened processes and kill them at my will before they actually finish executing.
This approach has a serious flaw, which is: you cannot serialize a resource type, at least not with serialize(). My question is: how can I save and restore this process handlers? (any suggestion of a better way to do this is welcome)

Thank you,
Rui
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC