First, check the permissions of the site directory.
Whether the upload directory has write permissions.
Second, php.ini configuration file
There are several places in the php.ini that affect uploading:
File_uploads open on must be turned on
Whether to allow HTTP file uploads
Post_max_size = 8M
Maximum length of post data accepted by PHP. This setting also affects file uploads.
To upload a large file, the value must be greater than "upload_max_filesize"
If the memory limit is activated in the configuration script, "Memory_limit" also affects file uploads.
Generally speaking, "memory_limit" should be bigger than "post_max_size".
Upload_max_filesize = 2M
Maximum size of files allowed to upload
Upload_tmp_dir = C:\windows\temp
The temporary directory where files are stored when the file is uploaded. Must be a user-writable directory for the PHP process. If not specified, PHP uses the system default value
Default_socket_timeout = 60
Socket timeout, unit is seconds
Max_execution_time = 30
The maximum allowable execution time per script, in seconds. The default is 30 seconds.
This parameter helps prevent inferior scripts from endlessly consuming server resources.
Note: "Max_execution_time" only affects the run time of the script itself.
Any other time spent outside the script, such as the use of the System ()/sleep () function, database queries, file uploads, etc. are not included.
In Safe mode, you cannot change this setting at run time with Ini_set ()
Max_input_time = 60
Maximum allowable time for each script to receive input data (POST, GET, upload), per second
Memory_limit = 128M
Sets the maximum number of bytes of memory that a script can request.
This helps prevent inferior scripts from consuming all the memory on the server.
To use this directive, it must be activated at compile time.
So the Configure line should include:--enable-memory-limit
If no memory limit is required, it must be set to-1
Since php4.3.2, when Memory_limit is set, the Memory_get_usage () function becomes available
third, Upload_tmp_dir directory permissions
If the PHP configuration is not a problem, it is possible that the problem is in the directory permissions set by Upload_tmp_dir. Join IIS_WPG except Full Control permissions, users read and write permissions, NETWORK server except Full Control permissions.
Iv. If Zend is employed, see if the Temp folder has Zendoptimizer.memorybase@system andZendoptimizer.memorybase@networkservice, if not, build it.
Five, if none of the above, the problem is likely to be here, check whether the Windows directory disables the Guests guest group, to read and execute permissions to the Windows Directory Users group.
http://www.bkjia.com/PHPjc/763011.html www.bkjia.com true http://www.bkjia.com/PHPjc/763011.html techarticle First, check the permissions of the site directory. Whether the upload directory has write permissions. Second, the php.ini configuration file php.ini affect the upload has the following: file_uploads whether open on must open ...