copy problem with HTTP wrapper

From: Date: Thu, 26 Jan 2006 15:28:07 +0000
Subject: copy problem with HTTP wrapper
Groups: php.general 
Request: Send a blank email to php-general+get-229316@lists.php.net to get a copy of this message
Hi all, I'm trying to copy a file from my PHP server to another server (a home gateway, called a LiveBox). I've used this code : $livebox = "192.168.1.1"; ... ... ... $crontab_livebox = "http://".$livebox."/cgi-bin/newCrontab"; if (!copy($crontab_temp_name, $crontab_livebox)) { echo "<br />Impossible to copy the temp crontab file to the Livebox.<br />"; } I get the following error : "HTTP wrapper does not support writeable connections" OK can I solve this. Can't I use URLs with the "copy" function if they don't point to my PHP server (local URLs) ? How can I copy a file from my PHP server to another server (there's no FTP server on the destination machine) ? Thanks, Laurent Vanstaen

« previous php.general (#229316) next »