I am currently working on a image class for my site, but it just dusn't work. 🙁
I don't get any errors
and the configuration should work 🙂
could anybody help me?
this is the way I acces the class:
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$afbeelding = new upload_afbeeldingen;
$afbeelding->set_thumb_map('../images/foto/thumb/');
$afbeelding->set_new_name(TRUE);
$afbeelding->set_cat($_POST['album']);
$afbeelding->set_thumben(TRUE);
$afbeelding->set_afb_map('../images/foto/full/');
$afbeelding->set_resize(TRUE);
$afbeelding->set_afb_size(500,500);
$afbeelding->set_thumb_size(150,150);
echo $afbeelding->foutmelding;
}
else
{
//some html
}
?>
You can find the class here:
http://www.pastebin.be/895/