-How do I make new folders on my server and upload pictures into it?
// creating folder
$imagename=$POST['imagename'];//if you are using post method otherwise use $GET['imagename'];
$dir="../yourfolder/".$imagename;
if (!file_exists($dir)){ mkdir($dir, 0755); }
and in your form use
enctype="multipart/form-data"
sample
<form action="" method="post" enctype="multipart/form-data">
<input name="file" type="file">
</form>
//uploading files
$path=$dir;
$tempname1 = $FILES['file']['tmp_name'];
$filename2 = $FILES['file']['name'];
if(!empty($filename2))
{
copy($tempname1, $path.$filename2);}
How do I make thumbnails that exist of a little part of the picture? Not just a littlte version of the big one, but a little piece.
answer is use gdlibrary there's a lot of sample source here