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. 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? 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. 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 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 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! 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
Archived
This topic is now archived and is closed to further replies.