rockstarrem Posted September 22, 2009 Share Posted September 22, 2009 Hey guys, I really need help here. I'm trying to decode an FLAC file through PHP. Here's an example: <?php system("flac -d dancing.flac"); ?> Now, that doesn't work. But if I just do this: <?php system("flac"); ?> I get the normal output of just typing "flac" in console. Quote Link to comment https://forums.phpfreaks.com/topic/175145-solved-using-system-exec-etc/ Share on other sites More sharing options...
mikesta707 Posted September 22, 2009 Share Posted September 22, 2009 How does it not work? do you get an error? invalid command? what happens when you write that? Quote Link to comment https://forums.phpfreaks.com/topic/175145-solved-using-system-exec-etc/#findComment-923078 Share on other sites More sharing options...
rockstarrem Posted September 22, 2009 Author Share Posted September 22, 2009 Literally nothing happens. There is no output. Nothing is decoded, everything stays the same. Quote Link to comment https://forums.phpfreaks.com/topic/175145-solved-using-system-exec-etc/#findComment-923080 Share on other sites More sharing options...
mikesta707 Posted September 22, 2009 Share Posted September 22, 2009 try doing this $line = system("flac -d dancing.flac", $returned); echo "Line : " . $line . "<br />"; echo "Return value: " . $returned . "<br />"; and see if you get an error message or any return value Quote Link to comment https://forums.phpfreaks.com/topic/175145-solved-using-system-exec-etc/#findComment-923081 Share on other sites More sharing options...
rockstarrem Posted September 22, 2009 Author Share Posted September 22, 2009 I got this: Line : Return value: 1 Quote Link to comment https://forums.phpfreaks.com/topic/175145-solved-using-system-exec-etc/#findComment-923082 Share on other sites More sharing options...
rockstarrem Posted September 22, 2009 Author Share Posted September 22, 2009 It was the server for some reason! Quote Link to comment https://forums.phpfreaks.com/topic/175145-solved-using-system-exec-etc/#findComment-923118 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.