When I try to upload a file to my server 'www.apparelsbangla.com' I found an error with following message:
Warning: Unable to create '../web/sami/a.txt': Permission denied in /home/sites/site199/web/upa.php on line 4
here is my code:
<?php
if($file=="Upload")
{
if(copy($userfile,"../web/sami/a.txt"))
{
echo("OK");
}
else
{
echo("Not uploaded.");
}
}
?>
<body>
<FORM ENCTYPE="multipart/form-data" ACTION="upa.php" METHOD=POST>
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Upload" name="file">
</FORM>
</body>
Any body help me please.