<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">I've found this piece of code on a forum, it was stated as a replacement for wget in PHP scripts. It uses the copy php function instead of exec with wget. I'll try to integrate it along with the tooltip bubbles that I will integrate in my next commit.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">&lt;?php</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">set_time_limit(1500); //1500 secs to be sure.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Tahoma; color: rgb(0, 94, 149); min-height: 16px; "><FONT class="Apple-style-span" color="#005E95"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">$remotefile = $_POST['remotefile'];</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Tahoma; color: rgb(0, 94, 149); min-height: 16px; "><FONT class="Apple-style-span" color="#005E95"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">$localfile = "/files/".basename($remotefile); //basename() returns the movie.avi from </SPAN></FONT><A href="http://www.domain.com/dir/movie.avi"><FONT class="Apple-style-span" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;"><FONT class="Apple-style-span" color="#00339A">www.</FONT><FONT class="Apple-style-span" color="#00339A">domain.com/dir/movie.avi</FONT></SPAN></FONT></A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Tahoma; color: rgb(0, 94, 149); min-height: 16px; "><FONT class="Apple-style-span" color="#005E95"><BR></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">if(copy($remotefile, $localfile)) {</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">  echo "Done";</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">else {</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">  echo "Error";</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">}</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#005E95" face="Tahoma" size="3"><SPAN class="Apple-style-span" style="font-size: 13px;">?&gt;</SPAN></FONT></DIV></BODY></HTML>