943,952 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1295
  • PHP RSS
Mar 11th, 2009
0

Save/serialize resource-type

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Light Poster
rmlopes is offline Offline
31 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: calendar-events
Next Thread in PHP Forum Timeline: Weird output





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC