Page 1 of 1

upload again

Posted: Sun Mar 30, 2003 11:19 am
by micknic
Hi

this is my syntax:

<html>
<head>
<title>Chargement de fichier</title>
</head>
<body>
<H3>Cette page vous permet d'envoyer un fichier sur le serveur</H3>
<form action="upload2.php" enctype="multipart"/form-data" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1024"/>
Charger le fichier: <input name="fichier" type="file" /><br />
<input type="submit" value="GO >>">
</form>
</body>
</html>


And this is the syntax of upload2.php

<?php copy($_FILES['userfile']['tmp_name'], "/docu/compta/");
?>

And now what appear on screen for upload2.php
Warning: Unable to open '' for reading: Permission denied in c:\program files\easyphp\www\maredsous\intranet\upload2.php on line 1


Does anyone know what is happening???? I hope you can help me

Posted: Sun Mar 30, 2003 12:51 pm
by nincha
try using your server's control panel and go change the permission of the file/folder

Posted: Sun Mar 30, 2003 1:33 pm
by micknic
i'll try


Thanks a lot :P