You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

13 lines
334 B

<?php
$mp3s = shell_exec('find "$(pwd)" -type f -name "*.mp3"');
$mp3s_ex = preg_split("/\\r\\n|\\r|\\n/", $mp3s);
$mp3s_total = sizeof($mp3s_ex);
for($i = 0; $i < $mp3s_total; $i++){
// echo $mp3s_ex[$i] . PHP_EOL;
$mp3 = $mp3s_ex[$i];
$ogg = str_replace('.mp3', '.ogg', $mp3);
echo $ogg . PHP_EOL;
}
?>