upload issue

From: Date: Thu, 24 Jan 2008 00:55:33 +0000
Subject: upload issue
Groups: php.general 
Request: Send a blank email to php-general+get-267964@lists.php.net to get a copy of this message
i am using this code on my form page: <form action="uploadAd2.php" enctype="multipart/form-data" method="post" name="adForm" id="adForm"> <input type="hidden" name="donorID" value="<?php echo $_GET['ID']; ?
" /> <input type="hidden" name="MAX_FILE_SIZE" value="3000000000" />
<input type="file" name="upload1" /> <input type="image" src="admin/images/next.png" name="Submit" alt="Submit Form" /> my upload code is below: $uploaddir = 'admin/advertisements/'; $uploadfileTmp = basename($_FILES['upload1']['name']); $uploadfile = $uploaddir . basename($_FILES['upload1']['name']); if (move_uploaded_file($_FILES['upload1']['tmp_name'], $uploadfile)) { $FileName = $uploadfileTmp; } else { echo "Error!"; exit(); } my error is: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@durgle.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. --- any ideas? i have no access to error.log...

« previous php.general (#267964) next »