All pastes #981201 Raw Edit

Miscellany

public php v1 · immutable
·published 2008-04-11 16:40 UTC
rendered paste body
$currentdir=getcwd();$target_path = $currentdir . "/" . basename($_FILES['file']['name']);echo "Target: $target_path<br>";$temploc=$_FILES['file']['tmp_name'];echo "Temploc: $temploc<br>";if (move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) {    echo "The file ".  basename( $_FILES['file']['name']). " has been uploaded<br><br>";} else {    echo "There was an error uploading the file, please try again!<br><br>";}