Re: Exec not functioning [SOLVED]

From: Date: Thu, 01 Jul 2010 02:45:21 +0000
Subject: Re: Exec not functioning [SOLVED]
Groups: php.general 
Request: Send a blank email to php-general+get-306587@lists.php.net to get a copy of this message
I forgot that PHP saves stuff in the /tmp directory (in my case /var/www/html/tmp [with permissins/owner set accordingly]. So, it works with: <?php $command = "/usr/bin/espeak -g0 -ven+m3 -p22 -s170 'Hallo Toofie' -w
                    /var/www/html/tmp/aba.wav";
exec($command); ?> Btw, it sounds pretty awful! On Tue, 29 Jun 2010 17:46:01 -0400, <kronos@aolohr.com> wrote:
Hi, I'm trying to utilize EXEC to have some text from a db query converted to a wav file using 'espeak'. The 'espeak' command works admirably by cli, but no matter what I do, exec does not seem to function on my Linux box, even though safe_mode is off. I've stripped the db query out, and ran a simplified text, 'Hallo Toofie' in the code. First off, I made sure that the espeak code worked by cli. It does. The code: <?php $command = "/usr/bin/espeak -g0 -ven+m3 -p22 -s170 'Hallo Toofie' -w aba.wav"; exec($command); ?> I've tried every combination I can think of including using 'espeak' without '/usr/bin', directing wav output to '-f /home/kronos/aba.wav'. What am I doing wrong? Any help, pointers, suggestions appreciated!
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

« previous php.general (#306587) next »