Ask about general coding issues or problems here.
2 posts • Page 1 of 1
- New php-forum User
- Posts: 8
- Joined: Tue Jun 24, 2003 11:15 am
- Location: Vernon, BC, Canada
Use a direct URL (ie. http://xxx.xxxx.com/Images/yourImage.jpg) the /home/www/html... will just confuse the server etc. It can work, but your best bet is a direct URL
$source_file = 'U:\\sites\\put\\upload\\2003_image5_76.jpg';
I think there might be some confusion. PHP is a server side language. It cannot see anything on a clients computer that is not sent through the browser. the $source_file would have to be a file that is already on the server in a tmp dir or something. PHP alone cannot read a file off of a remote computer.
see http://us3.php.net/features.file-upload for more info on handling file uploads