[isf-wifidog] Solving the wget install.php issue ...

François Proulx fproulx at edito.qc.ca
Mer 10 Mai 15:54:56 EDT 2006


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.

<?php
set_time_limit(1500); //1500 secs to be sure.

$remotefile = $_POST['remotefile'];

$localfile = "/files/".basename($remotefile); //basename() returns  
the movie.avi from www.domain.com/dir/movie.avi

if(copy($remotefile, $localfile)) {
   echo "Done";
}
else {
   echo "Error";
}
?>
-------------- section suivante --------------
Une pièce jointe HTML a été enlevée...
URL: http://listes.ilesansfil.org/pipermail/wifidog/attachments/20060510/fd422fc6/attachment.html


More information about the WiFiDog mailing list