Re: upload issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, January 23, 2008 6:55 pm, nihilism machine wrote:
> 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@xxxxxxxxxx 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.

Check the error_log of Apache.

It will almost certainly have more info.

You'll have to cause the error again or know the time when it happened
to find the error.

You should also make sure plain simple pages like <?php phpinfo()?>
work as expected.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux