Ice_Reaven
Little Kevin
Inregistrat: acum 17 ani
Postari: 57
|
|
am nevoie de un script care sa imi dea butonul ala de upload . eventual dupa ce uploadezi ceva sa iti arate tot ce e uploadat in baza de date
_______________________________________ ..::Life's too short to waste it all so f**k the n00bs and let it goo::..
|
|
pus acum 17 ani |
|
N30
Little Kevin
Inregistrat: acum 18 ani
Postari: 82
|
|
index.php
Code:
<form action="upload.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<center><input name="ufile" type="file" id="ufile" size="60" /><br>
<input type="submit" name="Submit" value="[ U p l o a d ]" /></center></form> |
upload.php
Code:
<?php
$cale= "files/".$_FILES['ufile']['name'];
if($ufile !=none)
{ if(copy($_FILES['ufile']['tmp_name'], $cale)) {
if($matches[1] == 'gif')
$original = imagecreatefromgif($_FILES['image']['tmp_name']);
if($matches[1] == 'bmp')
$original = imagecreatefromwbmp($_FILES['image']['tmp_name']);
echo "<b><span style='color: #00FF00'>Succes!</span></b> Fisierul a fost uploadat.<br><br><a href='index.php'>Inapoi</a>";
} else {
echo "<b><span style='color: #FF0000'>EROARE!</span></b> fisierul nu a fost uploadat.<br><br><a href='index.php'>Inapoi</a>"; } }
?> |
+ un director files
_______________________________________
|
|
pus acum 17 ani |
|
adrenaline5
Junior
Inregistrat: acum 17 ani
Postari: 25
|
|
just a question: nu se poate ca atunci cand cineva intra pe site sa uploadeze un fisier automat din calculatorul lui? ca de sters stiu ca se poate
|
|
pus acum 17 ani |
|
Ice_Reaven
Little Kevin
Inregistrat: acum 17 ani
Postari: 57
|
|
erm..cum fac sa imi arate toate fisierele uploadate precum si un link catre fiecare?
_______________________________________ ..::Life's too short to waste it all so f**k the n00bs and let it goo::..
|
|
pus acum 17 ani |
|