Re: [PHP] upload image

2006-08-25 Thread Sonja
Hi, Thanks for help, I find the error, here is the code of functions.php ?php /* Upload an image and create the thumbnail. The thumbnail is stored under the thumbnail sub-directory of $uploadDir. Return the uploaded image name and the thumbnail also. */ function uploadImage($inputName,

RE: [PHP] upload image

2006-08-24 Thread Peter Lauri
Maybe this will help you: $name = mysql_escape_string($_POST['doc_filename'][$key]); $author = mysql_escape_string($_POST['doc_filename_author'][$key]); $filename = mysql_escape_string($value); $filetype = mysql_escape_string($_FILES['doc_attach']['type'][$key]); $filesize =

Re: [PHP] upload image

2006-08-24 Thread Sonja
Hi, It looks like: function uploadImage($inputName, $uploadDir) { $image = $_FILES[$inputName]; $imagePath = ''; $thumbnailPath = ''; // if a file is given if (trim($image['tmp_name']) != '') { $ext =

Re: [PHP] upload image file to my server

2005-03-31 Thread Pablo M. Rivas
Hello Tomas: take a look at: http://www.php.net/manual/en/features.file-upload.php and for an example, take a look at. http://www.tek-tips.com/faqs.cfm?fid=5699 Good Luck. On Thu, 31 Mar 2005 17:48:37 -0800, Tomás Rodriguez Orta [EMAIL PROTECTED] wrote: Hello, hard people. I want to do

Re: [PHP] upload image

2002-12-11 Thread Sean Burlington
Shaun wrote: Hi, i am using a form to upload an image to the server, is it possible to get the image size during this process so i can store it for later use (i.e. determining the size of the popup window to view the image)? thanks for your help you want getimagesize()