Premature end of script headers

Status
Not open for further replies.

bolderbergsefotos

New Member
Messages
3
Reaction score
0
Points
0
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@bolder.x10hosting.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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
[Tue Oct 2 06:39:27 2007] [error] [client 84.196.1.80] Premature end of script headers: /home/bolder/public_html/auto/makealbum.php

Does someone has a idea whats going wrong, i just want to insert a row into the database.
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
500 errors are usually caused by permission problems, make sure your files are not set to 777 permissions. They should be 755 or below. If that does not fix it try removing your .htaccess to see if that is the issue.

-Corey
 

bolderbergsefotos

New Member
Messages
3
Reaction score
0
Points
0
Ok, the permission were 644, if i change them to 755, and i look again there back again 644, but as you say, that shouldn't be the problem, i haven't changed something to htaccess. and removing it doesnt help, i post my php code, maybe there's the fault.


PHP:
<?php session_start(); ?> 
<?php
if ($_SESSION['val'])	
{	



$naam=$value=$_POST['naam'];
$beschrijving=$value=$_POST['beschrijving'];
$datum=$value=$_POST['datum'];
	if ($naam!="")
	{
	require_once("config.php");
	mysql_query("INSERT INTO albums (naam, beschrijving, datum) VALUES ('$naam', '$beschrijving', '$datum')");
	echo'Album made.';	
	}
	else
	{
	echo'<form method="POST" enctype="multipart/form-data" action="makealbum.php"><br />Naam :<br /><input type="test" name="naam" /><br />';
	echo'Datum:<br /><input type="test" name="datum" /><br />'; 
	echo'beschrijving:<br /><textarea name="beschrijving" cols="50" rows="5"></textarea><br />';
	echo'<br /><input type="submit" name="objSubmit" value="Upload Plaatje" /></form>'; 
	}
}
else
{
echo 'Login First';}
?>

I see the form, but when i hit the button to put it in the database, i get the "500 Internal Server Error"
 
Status
Not open for further replies.
Top