> $data[0] = addslashes(fread(fopen($picture1, "r"), filesize($picture1))); Gak. You are missing otu on all sorts of error-checking there... > to store files from a client machine but now I want to store files from a > webstie ie > http://servername.com/file.jpg Just use $picture1 = "http://servername.com/file.jpg"; You really should break this down into multiple steps. You can get rid of the filesize() call to save load, and just loop through fread(..., 1000000); and append the data to your $data[0] -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]