how to read files with spaces and special characters in their name?

Mourlsmussy

New Member
i have lots of videos in my server and i use the following code to get the duration of the video and it works fine.. \[code\] ob_start(); passthru("ffmpeg -i ".$srcfile." 2>&1"); $duration = ob_get_contents(); ob_end_clean();\[/code\]But i could not get the duration for the files which has a space or any special characters like ( ' # % etc...I cant rename the files as it is stored already and the names of those files are also stored in db and it would take a toll to change all in a live site..So is there any method for accessing/reading the files with special characters?
 
Back
Top