| | |
Save/serialize resource-type
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2008
Posts: 31
Reputation:
Solved Threads: 0
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
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
![]() |
Other Threads in the PHP Forum
- Previous Thread: calendar-events
- Next Thread: Weird output
| Thread Tools | Search this Thread |
.htaccess advanced ajax apache api array beginner binary broken cakephp check checkbox class cms code cookies cron curl database date datepart display download dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert integration ip java javascript job joomla limit link login loop mail menu mlm mod_rewrite multiple mysql oop parse password paypal pdf php problem procedure query radio random recursion regex remote script search server sessions smarty sms soap source space sql stored syntax system table traffic tutorial unicode update upload url validation validator variable video web xml youtube





