This assumes the name of the file you want to upload is in $sourceFileName and the rest is the destination: the account and server followed by colon and the path to where the file should be store. In that example the path begins with the home of $storageAccount and goes into the storage directory. You can of course modify that to be any path, starting even with /. Check out the scp man page, you'll get a good description.system("scp $sourceFileName $storageAccount\@$storageServer:".'~'."/s +torage");
This offer secure file transfer but you may need to provide a password for your upload to work. To automate that read this
Of course, this use scenario may not fit your needs (you may not want to / be able to do that key exchange) but it is one variant I could suggest based on what info you provided.
Here's additional pointers if the above doesn't match your needs (again, I think your problem is a little under-specified): link1 and link2 and link3 Hope this helps.
In reply to Re: how can i upload a file to my webserver
by RaduH
in thread how can i upload a file to my webserver
by koleti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |