Hi,
I want to copy a image from to the server and it is int working Permission denied err Please help me out.
<form action="4.php" method="post" enctype="multipart/form-data" name="form">
<table width="365" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="111">File name </td>
<td width="254" align="center" valign="middle"><input name="file_name" type="file" id="file_name"></td>
</tr>
<tr>
<td> </td>
<td align="center" valign="middle"> </td>
</tr>
<tr>
<td> </td>
<td align="center" valign="middle"><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</form>
Give below is the php code.
if( $file_name_size < 102400 ) {
if (ereg("(.jpg|.gif|.png|.jpeg)$",$file_name_name))
{
copy($file_name_src, "c:/appserv/www/");
unlink( $file_name_src );
}
else
echo "pic1 is too big (max 100kB).";
}