Hi,
I am using a unlimited server for uploading some files but after using so many code , i am not able to achieve my goal.
So now i want i use my current server to php code and upload my files into another server, where limit will not be any issue.

Example.
Let's say i have two server ( www.rajesh.com and www.rathor.com),

now i am using below code into www.rajesh.com

if (file_exists("http://www.rathor.com/demo/rajesh/" . $_FILES["uploadedfile"]["name"]))
	 {
      echo $_FILES["uploadedfile"]["name"] . " already exists. ";
    }
	 else
	  {
      move_uploaded_file($_FILES["uploadedfile"]["tmp_name"],
      "http://www.rathor.com/demo/rajesh/" . $_FILES["uploadedfile"]["name"]);
      echo "Stored in: " . "http://www.rathor.com/demo/rajesh/" . $_FILES["uploadedfile"]["name"];
    }

So i just want to know, is it possible to do?
if yes then how i can achieve this?

Thanks

    [man]FTP[/man]?

    Although, something like sftp would be more secure; you could use it in conjunction with [man]exec/man / [man]system/man and friends...

      5 days later
      dalecosp;11040531 wrote:

      [man]FTP[/man]?

      Although, something like sftp would be more secure; you could use it in conjunction with [man]exec/man / [man]system/man and friends...

      hi,
      By using ftp also i am not able to upload files, may be the reason that first it will upload in current server then it will move.
      and the current server not allowing me to upload more than 20MB.

      Thanks

        Make a script on the receiving server that handels a post request with files and a curl-script on the sending server to send it... maybe

          Or fix the existing one so that files more than 20MB in size can be uploaded to it?
          And if you can't, change to using a server that can?

            Write a Reply...