Re: starting an external program
From: Han (j.leloux_at_chello.nl)
Date: 11/08/03
- Next message: Sio'Ri: "Re: how do you force connection through HTTPS?"
- Previous message: Gordan: "Re: apache question"
- In reply to: Han: "starting an external program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 07 Nov 2003 23:32:42 GMT
Thank's for your quick answers but it's not the solution for this problem.
The use of a test.bat file in the exec() command just works fine.
test.bat is a program that writes a logfile of a ping to the temp dirictory.
Since de file test.bat is in de home directory of apache I even don't have
to use the path direction as in the original example.
the test.bat file contains
ping 213.84.188.39 >c:\temp\test.log
so the scriptline exec('c:\apache2\homepage\test.bat); or
exec("test.bat"); works fine
But adding a extra programline in de test.bat file that starts the
prnfrm.exe file,will write a logfile but doesn't print anything and that is
what de prnfrm.exe file is supposed to do.
"Han" <j.leloux@chello.nl> schreef in bericht
news:EAgqb.8487$di.2527522@amsnews02.chello.com...
> Hi, Iám using een php script with de exec() command to start een external
> program that executes a printcommand and prints two lines on a printer.
> The program itself works just fine, but used in a php-script nothing
> happened.
> I use this scriptline.
>
> exec('c:\apache2\homepage\prnfrm.exe');
> but nothing happen's
>
> I use PHP 4.3 and Apache 2.0
> Does somebody nows the solution
>
> thanks
>
> Han Leloux
> Haarlem Holland
>
>
- Next message: Sio'Ri: "Re: how do you force connection through HTTPS?"
- Previous message: Gordan: "Re: apache question"
- In reply to: Han: "starting an external program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|