Re: problems with system()

From: Date: Thu, 24 Jan 2002 22:25:36 +0000
Subject: Re: problems with system()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81984@lists.php.net to get a copy of this message
In article <F221XRkyUMHQ93g389C00009f4a@hotmail.com>, john_g83@hotmail.com says... > > > Hello, > I am in a bit of a pickle and would greatly appreciate any help. I > have code which writes inputs to a txt file. These inputs are used as inputs > to a c program. What I am trying to do is use the redirect command < to run > the code from php. The command is: > ./a.out<test.txt > > through php I use: > system("./a.out<test.txt"); which does not work, (i.e the code is not > executed) > > also, rather strangly when I add another redirect: > system("./a.out<test.txt>junk"); > it does write the first couple of lines of the code output to the file. > > Can anyone see anything wrong? Any help would be great, thanks again > John Have you ensured that a.out is executable by the user that your web server runs as? Does the output in the second case give any clues? -- David Robley Temporary Kiwi!

« previous php.general (#81984) next »