tutoriale photoshop, brushes, patterns, gradient
Site afiliat proiectului Wtricks.com
   
   
  REGULAMENT | Search | Members | Calendar | Help  
 


Post Reply  Post Thread 
Am nevoie de un script de upload
Author Message
Rila
Designer incepator
*****


Posts: 347
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 1
Lei: 379.13
Post: #1
Am nevoie de un script de upload

Am nevoie de un script de uploadat fisiere ca acesta:http://www.invatam.net/script-pentru-upload-de-fisiere%28tutorial%29-t-2796.html
adica simplu,decat un formular si atat,dar vreau sa pot seta ce format de fisiere vreau sa imi uploadeze.
Poate ma ajutati sa il modific chiar pe acesta !
VA multumesc pentru eventualele raspunsuri!


Enciclopedia ta online-printre altele aici poti gasi si articole/tutoriale din sectiuni web
09-06-2008 08:29 PM
Find all posts by this user Quote this message in a reply
Ibrahym
Ucenic
****


Posts: 177
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Lei: 769.45
Post: #2
RE: Am nevoie de un script de upload

Poi eu am un script dar nu stiu daca iti este de folos! Sincer nu am reusit nici eu sa il instalez! Si e grav asa!

Demo : http://upload-pro.com

Download : xFileSharing Pro

PS: Daca e sa reusesti ceva .. sa ma anunti si pe mine ok ?

09-18-2008 07:36 AM
Visit this users website Find all posts by this user Quote this message in a reply
iuliais
Membru
**


Posts: 26
Group: Registered
Joined: Mar 2008
Status: Offline
Reputation: 0
Lei: 122.36
Post: #3
RE: Am nevoie de un script de upload

Ai putea sa incerci ceva la genu:$_FILE este un sir folosit pentru upload de fisiere. Are citeva chei predefinite cu care se apeleaza parametrii fisierelor uploadate (nume temporar, marime, etc.).

Fisierul  upload.html:
<html>
<body>
<form action="upload.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="FISIERUL" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>

Fisierul upload.php:
<?php
if ((($_FILES["FISIERUL"]["type"] == "image/gif")
|| ($_FILES["FISIERUL"]["type"] == "image/jpeg")
|| ($_FILES["FISIERUL"]["type"] == "image/jpg")
|| ($_FILES["FISIERUL"]["type"] == "text/plain"))
&& ($_FILES["FISIERUL"]["size"] < 20000))
  {
  if ($_FILES["FISIERUL"]["error"] > 0)
    {
    echo "Error: " . $_FILES["FISIERUL"]["error"] . "<br />";
    }
  else
    {$path = pathinfo('/xampp/htdocs/iulia/');   sau calea ta
     $calea= $path['dirname'].'/'.$path['basename'].'/'.$_FILES["FISIERUL"]['name'];
     echo $calea;
    //echo $path['dirname'].'/'.$path['basename'];
     $path.= $_FILES["FISIERUL"]["name"];
    if (move_uploaded_file($_FILES["FISIERUL"]["tmp_name"], $calea))
    echo "Upload: " . $_FILES["FISIERUL"]["name"] . "<br />";
    echo "Type: " . $_FILES["FISIERUL"]["type"] . "<br />";
    echo "Size: " . ($_FILES["FISIERUL"]["size"] / 1024) . " Kb<br />";
    echo "Stored in: " . $_FILES["FISIERUL"]["tmp_name"];
    }
  }
else
  {
  echo "Invalid file";
  }
?>
uploadeaza o imagine(gif, jpeg, jpg)  si o duce in calea specificata.

09-25-2008 08:11 PM
Find all posts by this user Quote this message in a reply
freezy
Activ
*


Posts: 13
Group: Registered
Joined: Sep 2008
Status: Offline
Reputation: 0
Lei: 24.03
Post: #4
RE: Am nevoie de un script de upload

Inainte de a cere ceva e bine totusi sa cauti putin pe googleSmile


Am un site cu jocuri barbie si unul de jocuri cu masini si multe altele ...:D...Urmareste tv online
09-26-2008 02:12 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Script pentru upload de fisiere(tutorial) r4zwy 0 146 06-18-2008 04:25 AM
Last Post: r4zwy
  Script pt. Upload Fisiere libotean 1 161 04-20-2008 06:28 PM
Last Post: TheBes7
  Script simplu nevoie URGENT ionutzu14u 9 381 03-15-2008 10:18 PM
Last Post: ionutzu14u
Smile nevoie de script .. ionutzu14u 2 182 03-06-2008 05:36 PM
Last Post: ionutzu14u

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

 

 Invatam Net
Esti nou pe aici? Vorbeste-ne despre tine.
Citeste articole si tutoriale unice.
Ai un site? Iti putem oferi un review.

  Parteneri

  


-->