jeg har opdaget at jeg skrive forkert første line 1.. nu i orden.
så stadigvæk problem med line 1..^^
Warning: require_once() [function.require-once]: Unable to access ../connetions/billeder.php in /var/www/******.dk/public_html/admin/upload.php on line 1
Warning: require_once(../connetions/billeder.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/*******.dk/public_html/admin/upload.php on line 1
Fatal error: require_once() [function.require]: Failed opening required '../connetions/billeder.php' (include_path='.:/usr/local/lib/php') in /var/www/********.dk/public_html/admin/upload.php on line 1
-------------------------------------------------------------------------------------
jeg har ændret line 24:
$destination = "../billeder/{$_FILES['filnavn']['name']} #";
<?php require_once('../connetions/billeder.php');
mysql_select_db($database_homeole_dk_db, $homeole_dk_db);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859" />
<title>upload billeder</title>
</head>
<body>
<?php
if (isset($_FILES['filnavn'])) {
print "fil, der er blivet overført: {$_FILES['filnavn']['name']}<p>\n";
$query = "INSERT INTO billeder SET billednavn='".$_FILES['filnavn']['name']."'";
$result1 = mysql_query($query, $homeole_dk_db) or die(mysql_error());
}
if (isset($_FILES['filnavn'])){
$tempfile = $_FILES['filnavn']['tmp_name'];
$destination = "../billeder/{$_FILES['filnavn']['name']} #";
copy($tempfile, $destination);
}
?>
<form action="upload.php" method="post" enctype="multipart/form-data" name="upload" id="upload">
fil, der skal overføres:
<label>
<input name="filnavn" type="file" id="filnavn" />
</label>
<p>
<label>
<input type="submit" name="submit" value="overfør" />
</label>
</p>
</form>
</body>
</html>
http://www.globe.dk/dreamweaver8_cms/ om problem med upload...
derfor vil jeg kontakte support og har skrivet til dem.. tror nok jeg får svar i morgen de har måske svaret på det..