I really have no clue if there was some logical conclusion that got me here but, I was able to figure out how to do this, using the copy function and ftp upload. I didn't need fopen fwrite, or anything like that. I am going to show you the coding that I used, it's a bit sloppy, but I did need a way to actually see the information, thus the html and echo statements and renamed $stuff.
<?
$upd = 'ftp://username:password@mydomainftpprotocol.com/directory/';
if ($_FILES[upload] !="") {
@copy($_FILES[upload][tmp_name], "$upd".$_FILES[upload][name]) or die("could not copy the file.");
} else {
die("no input file specidied");
}
$temp = $_FILES[upload][tmp_name];
$name = $_FILES[upload][name];
$size = $_FILES[upload][size];
$type = $_FILES[upload][type];
?><html><head><title>uploaded</title></head>
<body><p>
temp: <? echo $temp; ?><br>
Name: <? echo $name; ?><br>
Size: <? echo $size; ?><br>
type <? echo $type; ?><br>
</p></body></html>
So, for anyone who needs an explination, my upload form used the name="upload" attribut, so anywhere that you see upload in the code it refers to the file itself.
$upd is of course usually the directory that you want it to go to, it's usually "/usr/local/bin/" but, I decided to use my ftp protocol instead, just to see what would happen, and violin, it worked. Trial and error is great, I am just glad I didn't mess anything up while doing it, lol.
This image is part of a profile situation, so, the next thing that I am going to need to do is, reasign a name to the image.
What I will do, is, since each user, or member, only has 1 screenname, and is only allowed 1 picture, I will rename the image based on the username, and the file extention. I of course will only allow certain file types, jpg and gif, as there are no techies that would be members who might use png or other image types.
Once the file is renamed, I will then place that image name into the database added to the user's profile record, so that it will be easily called within the profile page.
I pretty much know how to do all of that stuff, so, if I get stumped I will ask, but, once I am done, I will add them here so that those that might be curious about how to do it, have that information.
Thanks to all in this thread who have pointed me in the right direction here.
p.s. If anyone can see any reason why I should seak another method of doing this, like security risks or anything, please let me know. I would hate to leave myself open to some kind of risk.
Thanks
Mike