Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Uploading files - error opening file

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Postby blake_ensenita » Wed Jun 25, 2003 12:55 pm

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
User avatar
blake_ensenita
New php-forum User
New php-forum User
 
Posts: 8
Joined: Tue Jun 24, 2003 11:15 am
Location: Vernon, BC, Canada

Postby Redcircle » Wed Jun 25, 2003 5:49 pm

$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
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 10 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.