class= " lineNumbers " del
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
|
class= del
> notpretty " del class= " del id= " codeSnippet807818 del
" border=
PHP
includere “. /. /dbdbdbdbdbdb.inc„;
$uploadDir = “. /My_ART/„;
se (isset ($_POST [“upload„]))
{
$fileName = $_FILES [“userfile„] [“nome„];
$tmpName = $_FILES [“userfile„] [“tmp_name„];
$fileSize = $_FILES [“userfile„] [“formato„];
$fileType = $_FILES [“userfile„] [“tipo„];
$filePath = $uploadDir. $fileName;
$result = move_uploaded_file ($tmpName, $filePath);
se (! $result) {
eco “lima uploading di errore„;
uscita;
}
se (! get_magic_quotes_gpc ())
{
$fileName = addslashes ($fileName);
$filePath = addslashes ($filePath);
}
$query = “INSERTO in MyTable DOVE email = ' uuuu@yyyyyy.com'E parola d'accesso = ' xxxx (nome, formato, tipo, percorso)„;
“STIMA ("$fileName„, “$fileSize„, “$fileType„, “$filePath ")„;
il mysql_query ($query) o muore (“il color=RED>Error del dei Files„;
}
? >
|