Curl - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Curl (/showthread.php?tid=52287) |
Curl - El Forum - 06-05-2012 [eluser]Unknown[/eluser] hello i want to get video from URL and save it in folder this is the sample of URL url="http://vod.cms.download.performgroup.com/omnisport/ready/french/162/fr-050612-ireland_1338883384151_162.m4v" how i can do that please if anyone can help me thanks for all Curl - El Forum - 06-05-2012 [eluser]Cristian Gilè[/eluser] Add the following method to your controller (or library or helper): Code: function get_video_from_url($link) call the new method and save the file locally: Code: $video = $this->get_video_from_url("http://vod.cms.download.performgroup.com/omnisport/ready/french/162/fr-050612-ireland_1338883384151_162.m4v"); Curl - El Forum - 06-05-2012 [eluser]Sanjay Sarvaiya[/eluser] Code: copy ( $source , $dest); Curl - El Forum - 06-05-2012 [eluser]Unknown[/eluser] thanks all i try Cristian Gilè code and it's work thanks |