Blog Archives

Getting the Duration of a Video with PHP

I wanted to calculate the duration of a video in seconds as in integer variable. For this I needed software outside of PHP. So, I decided to use the open source video encoding library, avconv, running on Linux Mint /

Tagged with: , , , ,
Posted in PHP, Video Encoding, Web Development

Splitting a file path in PHP

During the week, I was faced with the problem of dividing a given string containing a file path into the file name, extension and the path to the file’s directory. For example, “/home/myuser/myfile.ext”, has to be split into¬†“/home/myuser/”, “myfile” and

Tagged with: , ,
Posted in PHP