Hi Guys, hows it going.
Can anyone direct me to a good tutorial on uploading image filetypes onto my server from a form input.
I know how to open and write to files, as I use php to create the feeds for my site and my sitemap, and also to create the individual files for my articles which are inputted into a form.
But I believe creating image files on the server from a form input is slightly more complicated.
Possibly something like:
$handle = fopen('$the_input_file','r');
$what_i_need = fread($handle,filesize($handle));
$handle2 = fopen('new_image','w');
fwrite($handle2,'$what_i_need');
fclose($handle,$handle2);
If there is a lot more to it a good tutorial is fine, I'm not lazy, in fact I enjoy learning it all. Cheers.