For some reason my script it just not showing up at all im just seeing a blank white screen and im not getting any errors. Ive tried a number of things and ive been working on this same problem for hours and im getting no where.
Can someone please help me out.
<?php
error_reporting( E_ALL ); ini_set( 'display_errors', 'on' );
$uploadLocation = "images/";
if (isset($_POST['submitBtn'])){
$target_path = $uploadLocation . basename( $_FILES['upfile']['name']);
}
if(move_uploaded_file($_FILES['upfile']['tmp_name'], $target_path)) {
echo "The file: ". basename( $_FILES['upfile']['name']).
" has been uploaded!";
} else{
echo "There was an error uploading the file, please try again!";
}
$file = "test.xml";
function contents($parser, $description){
echo $description;
}
if(isset($_POST['description']))
$description = $_POST['description'];
else /**/error
function {startTag($parser, $description)
echo "<b>";
}
function endTag($parser, $description){
echo "</b><br />";
}
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startTag", "endTag");
xml_set_character_data_handler($xml_parser, "contents");
$fp = fopen($file, "r");
if((xml_parser($xml_parser, $description, feof($fp))))
{
die("Error on line " . xml_get_current_line_number($xml_parser));
}
xml_parser_free($xml_parser);
fclose($fp);
?>