Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 20
  1. #1

    Problema Easy Upload!!!! AIUTOOO

    Ragazzi non mi funziona questo tipo di uploader come mai? dove si mette la cartella di destinazione?

    per essere più precisi intendo dire questo http://freephp.html.it/zip/script/file/11_file.zip !!!

    Cosa devo modificare per farlo funzionare? GRAZIE IN ANTCIPO!!!

  2. #2
    Evitiamo la parola aiuto nei titoli, come da regolamento

    http://forum.html.it/forum/showthrea...hreadid=412253
    Addio Aldo, amico mio... [03/12/70 - 16/08/03]

  3. #3
    non lo sapevo scusa.

  4. #4
    Chiedere un suggerimento e mettere un link dove per dare una risposta bisogna scaricare lo script e installarlo mi sembra eccessivo.

    Se hai individuato il problema posta lo script relativo.


    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  5. #5
    la pagina php è questa

    <?

    /* Easy Uploader */

    // set variables (SET THESE TO SUIT YOUR CIRCUMSTANCES):

    // Upload directory (MUST HAVE TRAILING SLASH):
    $uploaddir="/home/username/public_html/path/to/whichever/upload/directory/";
    // Your email
    $youremail="you@your-domain.co.uk";
    // Thank you page:
    $thankspage="http://www.your-domain.co.uk/thanks.htm";

    // Set Upload thanks message for USER
    $uptymessage="$realname, thank you for uploading the file $file_name\n\nWe will get back to you ASAP.";
    // Set Upload thanks message for OWNER
    $ownermessage="$realname [ $email ] has uploaded a file named $file_name\n\nCheck the upload directory.";
    // Email message on or off ? 1 = on, 0 = off
    $emailmessages = "1";


    // start code (DO NOT CHANGE ANYTHING BELOW THIS LINE):

    // Check for valid email address

    $x = ereg("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$",$email);

    if($x==0)

    // if no valid email address entered, display no email message
    {
    echo "<div align=center>You must specify a valid email address for yourself. <a href=javascript:history.back(-1)>Return to the form</a>.</div>";
    }
    else {

    // Check to see if valid file
    if ($file == "none") {
    // if no valid email address entered, display no file message
    echo "<div align=center>You must specify a file to upload. <a href=javascript:history.back(-1)>Return to the form</a>.</div>";
    }
    else {
    //directory to upload to
    copy($file, $uploaddir.$file_name);
    unlink($file);

    //return thank you page
    Header("Location: $thankspage");
    }
    }
    if ($emailmessages == "1") {
    //mail you to let you know a new uploaded file
    mail("$youremail", "Uploaded file", "$ownermessage");
    //mail user to thank them
    mail("$email", "Uploaded file", "$uptymessage");
    exit;
    }

    ?>


    il readme dice questo

    Easy Uploader

    Directions for use:

    1. Change the variables in the script, to suit your needs:

    $uploaddir - This must be the SYSTEM LOCATION of your upload file. NOT a URL.
    $youremail - Your email address
    $thankspage - The page presented to the person AFTER uploading
    $uptymessage - The thank you message (sent by email to the person who uploaded)
    $ownermessage - The message sent to you to tell you of a new file that has been uploaded.
    $emailmessages - can be set on or off (1 for on, 0 for off)

    1a. Name the script "upload.php" (no quote marks)

    2. Create the upload directory in your webspace

    3. Create a form with these form fields:

    <form action="upload.php" method="post" ENCTYPE="multipart/form-data">
    File to upload:<input type="file" size=40 name="file">

    <input type="hidden" name="MAX_FILE_SIZE" value="100000">
    Your Name<input type="text" name="realname">

    Your Email<input type="text" name="email">

    <input type="submit" value="upload">
    </form>

    4. Set CHMOD on the upload directory to 777

    5. Upload everything and call your form, http://www.your-domain.co.uk/form.htm

    That's it! Easy!

    Having problems with this script ? Check out the dotdragnet Web Builder forum.

    http://www.dotdragnet.co.uk

    e poi ci sono 2 pagine html dove ci sono il form e i ringraziamenti!

  6. #6
    crea un direttorio e metti il path qui.

    // Upload directory (MUST HAVE TRAILING SLASH):
    $uploaddir="/home/username/public_html/path/to/whichever/upload/directory/";

    ovviamente lo saprai tu quale e' il tuo path...

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  7. #7
    Cosa intendi tu per pach? il posto dove vengono salvati i file inviati?

    Mettiamo cosa io li devo mettere in una cartella che si chiama ciao, io dovrò mettere http://www.miosito.it/ciao/ oppure http://www.miosito/ciao\ ??

  8. #8
    Originariamente inviato da JiNGEK
    Cosa intendi tu per pach? il posto dove vengono salvati i file inviati?

    Mettiamo cosa io li devo mettere in una cartella che si chiama ciao, io dovrò mettere http://www.miosito.it/ciao/ oppure http://www.miosito/ciao\ ??
    PATH percorso....

    il primo dei due che hai detto.


    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  9. #9
    Non mi funziona!!!

    Dove sbaglio? Io ho modificato così

    <?

    /* Easy Uploader */

    // set variables (SET THESE TO SUIT YOUR CIRCUMSTANCES):

    // Upload directory (MUST HAVE TRAILING SLASH):
    $uploaddir="http://www.miosito.it/file/";
    // Your email
    $youremail="you@your-domain.co.uk";
    // Thank you page:
    $thankspage="http://www.miosito.it/11_file/thanks.htm";

    // Set Upload thanks message for USER
    $uptymessage="$realname, thank you for uploading the file $file_name\n\nWe will get back to you ASAP.";
    // Set Upload thanks message for OWNER
    $ownermessage="$realname [ $email ] has uploaded a file named $file_name\n\nCheck the upload directory.";
    // Email message on or off ? 1 = on, 0 = off
    $emailmessages = "1";


    // start code (DO NOT CHANGE ANYTHING BELOW THIS LINE):

    // Check for valid email address

    $x = ereg("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$",$email);

    if($x==0)

    // if no valid email address entered, display no email message
    {
    echo "<div align=center>You must specify a valid email address for yourself. <a href=javascript:history.back(-1)>Return to the form</a>.</div>";
    }
    else {

    // Check to see if valid file
    if ($file == "none") {
    // if no valid email address entered, display no file message
    echo "<div align=center>You must specify a file to upload. <a href=javascript:history.back(-1)>Return to the form</a>.</div>";
    }
    else {
    //directory to upload to
    copy($file, $uploaddir.$file_name);
    unlink($file);

    //return thank you page
    Header("Location: $thankspage");
    }
    }
    if ($emailmessages == "1") {
    //mail you to let you know a new uploaded file
    mail("$youremail", "Uploaded file", "$ownermessage");
    //mail user to thank them
    mail("$email", "Uploaded file", "$uptymessage");
    exit;
    }

    ?>

  10. #10
    Modifica così:

    --------CODE---------------------------

    <?

    /* Easy Uploader */

    // set variables (SET THESE TO SUIT YOUR CIRCUMSTANCES):

    // Upload directory (MUST HAVE TRAILING SLASH):
    $uploaddir="./file/"; //crea una cartella all'interno del server dove viene eseguito lo script
    // Your email
    $youremail="you@your-domain.co.uk"; //la tua e-mail
    // Thank you page:
    $thankspage="./thanks.htm"; //pagina ringraziamenti nella stessa directory

    // Set Upload thanks message for USER
    $uptymessage="$realname, thank you for uploading the file $file_name\n\nWe will get back to you ASAP.";
    // Set Upload thanks message for OWNER
    $ownermessage="$realname [ $email ] has uploaded a file named $file_name\n\nCheck the upload directory.";
    // Email message on or off ? 1 = on, 0 = off
    $emailmessages = "0";


    // start code (DO NOT CHANGE ANYTHING BELOW THIS LINE):

    // Check for valid email address

    $x = ereg("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$",$email);

    if($x==0)

    // if no valid email address entered, display no email message
    {
    echo "<div align=center>You must specify a valid email address for yourself. Return to the form.</div>";
    }
    else {

    // Check to see if valid file
    if ($file == "none") {
    // if no valid email address entered, display no file message
    echo "<div align=center>You must specify a file to upload. Return to the form.</div>";
    }
    else {
    //directory to upload to
    copy($file, $uploaddir.$file_name);
    unlink($file);

    //return thank you page
    Header("Location: $thankspage");
    }
    }
    if ($emailmessages == "1") {
    //mail you to let you know a new uploaded file
    mail("$youremail", "Uploaded file", "$ownermessage");
    //mail user to thank them
    mail("$email", "Uploaded file", "$uptymessage");
    exit;
    }

    ?>

    ------------------------------------------------------------

    Ecco qui, è molto semplice. Chiedi se hai altri problemi.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.