u etetr reference them with $_FILES['photonew']['tmp_name'] or do a print_r($_FILES); and it'll tell u info in the upload
-----Original Message----- From: Al [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 7:14 AM To: [EMAIL PROTECTED] Subject: [PHP] File uploads... Trying to do what should be rather simple and I have done before. Maybe I am just overlooking the obvious but this is the error I get... Warning: Unable to open 'Array' for reading: No such file or directory in /var/www/html/nepso_noah/NEPSO/includes/reporters/update_profile.inc on line 33 This 'Array' is just the value of the name from the form field for the file upload... Here are the pieces of the form that seem to matter... <form name=\"profile\" method=\"post\" action=\"$PHP_SELF?action=update_profile\" enctype=\"multipart/form-data\"> <input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"500000\"> <input type=\"file\" name=\"photonew\"> Now when I call to the submitted data copy($photonew, "images/reporters/$user_id/$photonew_name"); And for error checking I echo the following $photonew -- This results as Array <-- though this should be the tmp path??? $photonew_name -- This gives me the file name etc... I looked over previous scripts used and they appear to work on other machines just not this one. The php.ini is as follows for the file upload area... ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir = /tmp ; Maximum allowed size for uploaded files. upload_max_filesize = 2M Any ideas what settings I need to change to make this simple process happen? Thanks --Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php