[PHP] upload image

2006-08-24 Thread Sonja
Hi, I have problems with uploading image, here is the code if(isset($_POST['txtTitle'])) { $albumId = $_POST['cboAlbum']; $imgTitle = $_POST['txtTitle']; $imgDesc = $_POST['mtxDesc']; $images= uploadImage('fleImage', GALLERY_IMG_DIR); if ($image

Re: [PHP] upload image

2006-08-24 Thread Sonja
{ // the image cannot be uploaded $imagePath = $thumbnailPath = ''; } } return array('image' => $imagePath, 'thumbnail' => $thumbnailPath); } Mourad Boulahboub wrote: > > Hi sonja, > > > >

Re: [PHP] upload image

2006-08-25 Thread Sonja
Hi, Thanks for help, I find the error, here is the code of functions.php $imagePath, 'thumbnail' => $thumbnailPath); } /* Create a thumbnail of $srcFile and save it to $destFile. The thumbnail will be $width pixels. */ function createThumbnail($srcFile, $destFile, $width, $quality = 75) {