Page 1 of 1

Launching an EXE from PHP

Posted: Mon Jun 06, 2005 9:11 am
by thomas777neo
Hi All

I have a fax application that allows command line parameters to it.

If I execute the command in the command line, all works 100%. Yet, if I run the exact same command through a Php script it doesn't do anything.

Here's an example:

Code: Select all

<?php
chdir("c:\\");
$output = system("C:\WINDOWS\System32\calc.exe");
?>
Could it be the webserver(Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7e PHP/5.0.3 ) or php(PHP: 5.0.3) setup???

This R driving me NUTS!!!!!
Please HELP 8O

Posted: Mon Jun 06, 2005 9:19 am
by timvw
I've tried it, and if i look in my process list, i see that calc.exe is there. But it doesn't appear on my window list...

Posted: Mon Jun 06, 2005 9:26 am
by thomas777neo
That's weird, windows has created a virtual world that nobody know about.

Posted: Mon Jun 06, 2005 9:28 am
by malcolmboston
sounds to me like the application isnt getting "focus"

best off going to a "programming windows" forum although we have some very knowledgable people amongst us.

:cry: If only feyd were here, id bet my life he could answer it