upload again

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
micknic
Forum Commoner
Posts: 37
Joined: Thu Feb 27, 2003 1:27 pm
Location: belgium

upload again

Post 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
nincha
Forum Contributor
Posts: 191
Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA

Post by nincha »

try using your server's control panel and go change the permission of the file/folder
micknic
Forum Commoner
Posts: 37
Joined: Thu Feb 27, 2003 1:27 pm
Location: belgium

Post by micknic »

i'll try


Thanks a lot :P
Post Reply