Devam Ediyor

512457 find relative path for playlist generating script


I have a PHP script that is supposed to scan a music folder and create a playlist in a music player. I am having trouble finding the 'relative path' that I need to enter to make the script work.

This project is for you to find the relative path. There will be more work for you if you are successful.

Here is part of the script:

$relative_path_from_meta = '';

$meta_extension = 'mp3';

$valid_file_types = array('mp3', 'ogg');

if ($handle = opendir('.')) {

$playlist = array();

while (false !== ($file = readdir($handle))) {

if ($file != "." && $file != "..") {

$this_file = pathinfo($file);



$playlist[$this_file['filename']] = array($this_file['extension'] => $file);




$playlist[$this_file['filename']][$this_file['extension']] = $file;


if($this_file['extension'] == $meta_extension)


$playlist[$this_file['filename']]['meta_path'] = $relative_path_from_meta . $file;







Beceriler: Her şey Kabul, PHP, Kabuk Betiği

Daha fazlasını görün: create shell script, file extension playlist, shell script extension, find the music, find music, playlist, path to, php script path, php mp3 ogg, find file, ogg mp3, create music playlist, mp3 ogg php, php script player, shell folder extension, handle path, find part, php ogg player, php player script, file path file handle, path handle, mp3 ogg, player playlist script, folder shell extension, path file handle

İşveren Hakkında:
( 31 değerlendirme )

Proje NO: #2258389