rastkocvetkovic
Programmer
Regards!
With a little bit of help of our Tek-tips forums I've managed to transfer data from one server to another. Now I'm trying to transfer images - from server1.com to server2.com.
I already have HTML forms (input="file" that can upload the picture to server2.com, but I want this to be done automatically.
Therefore I've tried JAVASCRIPT:
I tried to manually javascript the values of this file-input-types - like <input name="image[]" type="file" value="<?=$path_to_image[$i]?>> and hide them into an invisible layer in <form><invisible layer><submit button></form>, but the the 'type="file"' can't get values with 'value="something"'... (eg. 'value="c:\something.jpg"')
Should I try BINARY TRANSMISSION with fopen and fclose?
I surely don't want to use FTP due to security risks (password will be shown in the code).
Thank you for your tips on this.
With a little bit of help of our Tek-tips forums I've managed to transfer data from one server to another. Now I'm trying to transfer images - from server1.com to server2.com.
I already have HTML forms (input="file" that can upload the picture to server2.com, but I want this to be done automatically.
Therefore I've tried JAVASCRIPT:
I tried to manually javascript the values of this file-input-types - like <input name="image[]" type="file" value="<?=$path_to_image[$i]?>> and hide them into an invisible layer in <form><invisible layer><submit button></form>, but the the 'type="file"' can't get values with 'value="something"'... (eg. 'value="c:\something.jpg"')
Should I try BINARY TRANSMISSION with fopen and fclose?
I surely don't want to use FTP due to security risks (password will be shown in the code).
Thank you for your tips on this.