473,385 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Want to spawn process from Windows PHP

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?

Oct 31 '06 #1
0 1437

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Pif Paf | last post by:
I am writing programs that will run as TCP servers. Briefly, I want to set up a TCP server on a port in such a way that if another server is already sitting on that port (both servers are Python...
1
by: Tieum | last post by:
Hello, To launch a new process under windows I use the spawn command spawnvp spawnvp(_P_NOWAIT, cmd, ppTab); with ppTab containing myprog.bat does produce output. If I launch this from...
3
by: dotNETDavid | last post by:
We've broken our app into various assemblies. The WinForm assembly provides the user interface, other assemblies provide various I/O services. I'd like to be able to call...
3
by: Sinan Nalkaya | last post by:
hi, i am using os.spawn function, it works well but i need a flag that allows function return the process id with exit/error code, is there any or how can i do it, i can replace spawn with...
4
by: richie | last post by:
Hi Everyone I have a problem with windows service I wrote which spawns a win32 program. the code in question looks like this: myProcess = new Process(); myProcess.StartInfo.FileName =...
1
by: ranju | last post by:
I am trying to spawn a process (say an exe file) with different user crendentials than that of the current user. 1) Called LogonUserEx() to logon the user and recieve a handle to the token that...
3
by: somuchh8 | last post by:
Hi, I'm having a lot of trouble with the Win32::Spawn module in perl. Here is my situation, I have a Win32::Spawn call which looks like this: my $success = undef; my $cmdline =...
2
by: Dmitry Teslenko | last post by:
Hello! How to write portable (win32, unix) script that launches another program and continues its execution? I've looked at spawn*() but it doesn't look in PATH dirs on windows so it's totally...
0
by: Jean-Paul Calderone | last post by:
On Fri, 02 May 2008 06:30:03 -0500, Nick Craig-Wood <nick@craig-wood.comwrote: I haven't read all of this thread, so excuse me if this is out of place. There is a good cross-platform solution,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.