Re: Help with exec syntax

From: Date: Mon, 17 Nov 2003 02:07:14 +0000
Subject: Re: Help with exec syntax
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-169873@lists.php.net to get a copy of this message
John W. Holmes wrote:
Mark wrote:
The syntax I am using is this. system('cmd/c start notepad my.txt', $results); or exec('start notepad my.txt', $results);
You shouldn't be using exe() or system() for this, use fopen() to open a file from within PHP for editing.
Thanks for the reply. The fopen() works fine, now if I were to apply the exec, or system function to start or run a pgrogram ie: (Mercury mail) exec('start mercury.exe', $results); I am still facing the same issue...what what would be the solution to this? Regards, Mark

« previous php.general (#169873) next »