PDA

View Full Version : Help with PHP


nathanleyton
11-05-2003, 07:56 AM
What I am trying to achieve is this;

Using a command prompt tool i have I want to convert .wav files to MP3 move them then play them in flash.

I decided to use PHP and the exec() function.

here is my function

function MakeMP3($startpath, $endpath)
{
exec("c:\\BladeEnc\\BladeEnc $startpath $endpath", $result);
}


when i run this with a start path and an end path the web browser just sits loading for ever. but if i run it from a command prompt it works ok.

If anyone know anything at would help

Thanks

Nathan

nathanleyton
11-05-2003, 08:24 AM
Found the problem

for some reason it couldn't hadle there being spaces in my path. what I had to do was put everthing in single quotes then double quotes.

Nathan