File uploads...

From: Date: Mon, 24 Mar 2003 20:14:20 +0000
Subject: File uploads...
Groups: php.general 
Request: Send a blank email to php-general+get-140891@lists.php.net to get a copy of this message
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

« previous php.general (#140891) next »