I have install easyphp in win xp.
PHP tell me about an error, these is code and error.
<?
//definisco le variabili
$data=date("H:i:s d/m/Y");
$conn=mysql_connect("localhost","root","");
$patch = "C:\programmi\easyphp\www\progetti\files";
$sizelim = "no"; //Do you want size limit, yes or no
$size = "400000"; //What do you want size limited to be if there is one
//mi accerto che esita il file
if (file_exists($img)) { copy ($img , "$patch/$img_name");
echo ("<br>il file è stato inserito<br>");
}
else { echo "<br>non hai caricato il file<br>";
}
// Mi connetto a Mysql
mysql_select_db("db_utenti") or die ("<br>Non riesco a selezionare il database<br>");
print "<br>Il database è stato selezionato<br>";
mysql_query("insert into tbl_utenti (user,pass,nome,cognome,citta,indirizzo,mail,anni,sesso,img_name,descrizione,data) values ('$user','$pass','$nome','$cognome','$citta','$indirizzo','$mail','$anni','$sesso','$img_name','$descrizione','$data')" )or die ("<br>I dati sono stati inseriti<br>");
?>
//these error if file there is'nt
Warning: Unable to open '' for reading: Permission denied in c:\programmi\easyphp\www\progetti\insertdata.php on line 13
can help me ? thx!