Re: Unable to execute c++ .exe file from php

From: Date: Fri, 08 Nov 2002 14:54:13 +0000
Subject: Re: Unable to execute c++ .exe file from php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-123386@lists.php.net to get a copy of this message
At 15:30 08.11.2002, Ladan Pickering spoke out and said: --------------------[snip]-------------------- >I am unable to execute my c++ program from within PHP when it runs as a >cgi in Apache. >I am able to run: > >$cmd="dir c:\abc" >system ($cmd, $errCode); > >and see the content of the directory, but I don't seem to >be able to run a simple hello.exe (c++) file. > >$cmd = "c:\abc\hello.exe"; >system ($cmd, $errCode); --------------------[snip]-------------------- I think you need to either escape the backslash (like c:\\abc\\hello.exe), or simply use forward slashes (as c:/abc/hello.exe). -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#123386) next »