Hi I'm trying to write a php script that will upload files to the server.
I do have ISPConfig installed but I think that I've changed things in the necessary areas to not have problems with ISPConfig.
Here is the script:
<meta http-equiv="content-type" content="text/html"; charset="iso-8859-1" />
error_reporting(E_ALL & ~E_NOTICE);
print '<p>Your file has been uploaded successfully!</p>';
print '<p>Your file could not be uploaded because: <b><br>';
print 'Temp Name: ';
print 'Name: ';
print 'The file exceeds the upload_max_filesize setting in php.ini';
print 'The file exceeds the MAX_FILE_SIZE setting in the HTML form';
print 'The file was only partially uploaded';
print 'No file was uploaded';
print 'No temp directory found';
print 'Cannot write file to specified location';
print 'Extension not valid';
<form name = "uploader" method = "post" action = "Upload.php" enctype = "multipart/form-data">
<p>Upload a file using this form: <br/><br/>
<input type = "hidden" name = "MAX_FILE_SIZE" value = "3000" />
<input type = "file" name = "thefile" /><br/><br/>
<input type = "submit" name = "submit" value = "Upload File" />
When I run this I have the error 6 come up. The error that says there is no temporary directory. Also the $_FILES['thefile']['tmp_name'] value is empty.
I don't know what I'm doing wrong. The temporary directory has permissions 777 and I've set the temporary directory. I've looked through php.ini and can't see any problems. Anyone have any suggestions? Thanks!