| | |
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 |
# 5.2.10 ajax apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date display dissertation dynamic echo echo$_get[x]changingitintovariable... email error file files folder form forms function functions google href htaccess html image images include insert integration ip java javascript joomla ldap legislation limit link local login loop mail memberships menu mlm multiple multipletables mysql mysqlquery oop open paypal pdf persist php problem query radio random recursion regex remote rss script search server sessions sms soap sockets source space spam sql syntax system table tutorial update upload url validator variable video web xml youtube





