Here is my code and the error:
anyone have a clue?..
<html>
<head></head>
<body>
<?
$source_file1 = $_FILES['bestand1']['tmp_name'];
if(isset($_FILES['bestand1'])){
$file = "teller.xml";
function contents($parser , $data){}
function start($parser , $data){echo"";}
function ending($parser , $data){echo"";}
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser,"start","ending");
xml_set_character_data_handler($xml_parser, "contents");
$fp = fopen($file,"r");
$data = fread($fp , 80000);
xml_parse($xml_parser, $data, feof($fp));
fclose($fp);
$target = "img".$data.".jpg";
move_uploaded_file($source_file1,$target);
}
?>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="bestand1"><br>
<input type="submit" name="submit" value="Upload">
</form>
</body>
</html>
and this is the XML-file:
<list>
<teller>1</teller>
</list>
and here is the error-code:
Warning: move_uploaded_file(img 1 .jpg): failed to open stream: No such file or directory in /home/cjbcc/public_html/members/koerel/party/easy-uploads.php on line 23
Warning: move_uploaded_file(): Unable to move '/tmp/phpprSbPF' to 'img<list> <teller>1</teller> </list>.jpg' in /home/cjbcc/public_html/members/koerel/party/easy-uploads.php on line 23