scan mp3 files in specific folder and update mysql file name, size, date

Started on the old forum in November 2020 · view the original in the archive · old links redirect here

1 reply · 65 views · started 6 years ago · 1 min read

2 participants
ayesham Developer · 69 posts #1

i cannot upload 2mb< files to my vps from php so I'm uploading bigger capacity files from cpanel need a php script wich can able to scan and update my mysql db name, size, and path, could anyone give me an answer for this??

GumSlone Administrator Principal · 1,690 posts #2
<?php
foreach (glob("/path_to_mp3_directory/*.mp3") as $filename) {
    echo "$filename - Größe: " . filesize($filename) . "\n";
}
?>

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close