hello there, how to copy a file from the remote server?
<?php
$file = fopen ("https://192.168.4.11/secure/random.php", "r");
if (!$file) {
echo "<p>Unable to open remote file.\n";
exit;
}
while (!feof ($file)) {
$line = $line . fgets ($file, 1024);
}
fclose($file);
echo $line;
?>
Warning: fopen(https://192.168.4.11/phpdata/random.php) [function.fopen]: failed to create stream: Invalid argument in D:\WWWROOT\login\xx.php on line 2
Unable to open remote file.