You are here: Want to spawn process from Windows PHP « PHP Programming Language « IT news, forums, messages
Want to spawn process from Windows PHP

Posted by Alfred Whitney on 10/31/06 06:30

I wanted to write some code purely on Linux, but unfortunately the
document scanner drivers are non-existent for the high-end commercial
document scanners. So, I had to port my Linux PHP project to Windows
PHP (WAMP). There, I found a scanning tool (Kodak Image Scan -
imgscan.ocx) that I can put on a VB form, tell it to scan some
documents into a TIF file, and then shut down.

I can run this VB app at command line just fine, but when I run it from
either a popen(), system(), or exec() call, it won't detach from the
PHP page. Instead, it just sits there. I can see the VB exe I made is
being loaded properly in RAM, but unfortunately it sticks and won't
unload on its own, nor will it tell the scanner to engage. I have to
kill the VB exe and then the PHP page continues.

What's the way to spawn a detached process from PHP on Windows?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация