Not Sure where or if listing this is relative in this forum. Being new uncertain.
but here goes..PHP code question....i think "basename" is the right direction..
right now the output is
./video/Clover Hill Official Music Video Leaves A Scar.mp4
I need it o be
Clover Hill Official Music Video Leaves A Scar
with the addition of 4 extra blank lines at the top
but here goes..PHP code question....i think "basename" is the right direction..
PHP:
$folder = '../video';
$data = implode(PHP_EOL, glob($folder . "/*.mp4"));
$my_file = 'schedule.txt';
$handle = fopen($my_file, 'w') or die("Cannot open file: ". $my_file);
fwrite($handle, $data);
fclose($handle);
right now the output is
./video/Clover Hill Official Music Video Leaves A Scar.mp4
I need it o be
Clover Hill Official Music Video Leaves A Scar
with the addition of 4 extra blank lines at the top