hello friends.. i would like to know how can i use the copy function to copy a file from a location that is having an ip and a port to my server ...
say the server from which i want to copy is: x.x.x.x and port is 81
so i write
copy('x.x.x.x:81/sample.zip','sample.zip');
but this does not work.
i get an error
"failed to open stream: Connection refused in /home/xxxxx/public_html/check.php on line 10"
what's wrong ??? and yes i have chmoded to 777.
(note that the file can only be accessed by port '81' and not by any other port.)
say the server from which i want to copy is: x.x.x.x and port is 81
so i write
copy('x.x.x.x:81/sample.zip','sample.zip');
but this does not work.
i get an error
"failed to open stream: Connection refused in /home/xxxxx/public_html/check.php on line 10"
what's wrong ??? and yes i have chmoded to 777.
(note that the file can only be accessed by port '81' and not by any other port.)
Comment