Ask a Question related to PHP Development, Design and Development.
-
Han #1
starting an external program
starting an external program Tue, 11 November 2003 00:12
I'am using een php script with de exec() command to start een
external program that executes a ping-command and printcommand that 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\test.bat');
but nothing happen's
I use PHP 4.3 and Apache 2.0 and WinXP pro
test.bat is a batch-file 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. So changing
the backslash by a dubble one makes no difference
the test.bat file contains
ping 213.84.188.39 >c:\temp\test.log
The program "test.bat" is in de homedir from Apache
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,which is in the same directory will write a logfile but
doesn't print anything and that is what the prnfrm.exe file is supposed to
do. PhP is not in safe mode. and
according the manual no special operators have to be set.
the purpose of this all is to make a remote controll for a
webcam on a webpage. The control of the webcam is done with a visual basic
program. Before I build the hardware I want to be able to control the visual
basic program from a PHP scriptline. So I compiled a little VB program that
prints 2 lines on a printer, the prnfrm.exe file.
what's wrong
Han Leloux
Han Guest
-
Program starting when open other programs
How do I correct this problem: When I open other programs on my computer, Contribue 3 starts loading? It happens repeatedly and is now getting... -
Change users after starting program
HI there. I'm testing Contribute 3 out on a Terminal Server before we do any purchasing and I was wondering if there was a way to change users once... -
Starting a perl program when I connect to the internet.
I'm trying to automatically start a perl-program everytime I connect to the internet using a dialup-connection for my modem. Is there a simple way... -
#24759 [Opn->Bgs]: exec() or system() et all cause an infinite loop of starting requested program
ID: 24759 Updated by: edink@php.net Reported By: jkramer at controlvision dot com -Status: Open +Status: ... -
problem : SNMP port used when starting my java program
> I'm trying to send a TRAP PDU using a java SNMP stack can I send SNMP packets using another port???



Reply With Quote

