I made me a little upload script without all the bull**** of checking for filetype or filesize… did’nt need it… but somehow i cant get it to work… it looks like its upload acording to the loaderbar at the bottom of my browser but i keep getting di’nt work… whats wrong with this???
<?
if ($HTTP_SERVER_VARS['REQUEST_METHOD'] == 'POST') {
if (!@move_uploaded_file($HTTP_POST_FILES['mijn_bestand']['tmp_name'],
'plaatjes/')) {
die ("didn't work.");
}
die ("done...");
}
?>
<form enctype=“multipart/form-data” method=“post” action="
<?php echo $HTTP_SERVER_VARS[‘PHP_SELF’]; ?>">
<input type=“file” name=“mijn_bestand”><br>
<input type=“submit” value=“Uploaden”>
</form>
My /plaatjes/ directory is chmod 777…