Thread: cURL - m4v
View Single Post
Old 10-01-2009, 11:21 AM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

A file is a file is a file for curl, it doesn't matter what type. I suggest adding in some error checking and reporting to see what's going wrong.

Offtopic: I'd also suggest using pathinfo($filename, PATHINFO_EXTENSION) to grab the file extension rather than the explode/array_pop combo that you use.
Salathe is offline  
Reply With Quote