Upload script???

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
WeaponsX
-


Joined: 14 Sep 2003
Posts: 72
Location: To druck to know.

PostPosted: Thu Feb 12, 2004 2:54 am    Post subject: Upload script??? Reply with quote

I just really need someone to write me a very simple upload script in php for my site! If you can tell me how to have it upload files to a zip folder that would be cool too. THANK YOU VERY MUCH. :twisted:
_________________
Picture of my a$$ coming soon till than look at this ( ( ) <== NICE A$$!
Back to top View user's profile Send private message Send e-mail AIM Address
some random person
-


Joined: 06 Oct 2003
Posts: 128
Location: I live here! At my house!

PostPosted: Thu Feb 12, 2004 4:37 am    Post subject: Reply with quote

Heres one I found on this forum I think...
Code:

Upload a file</b>
<p>
<?php
       
      /*
         Change the value of $upload_dir to refer to the
         directory where uploaded files will to be stored.
      */
      $upload_dir="uploaded";
       
      if (isset($_REQUEST['submit']))
      {
         if    (   ($_FILES['userfile']['error']==UPLOAD_ERR_OK)
            &&   move_uploaded_file($_FILES['userfile']['tmp_name'],
                           $upload_dir . "/" . $_FILES['userfile']['name'])
            )
               echo $_FILES['userfile']['name'], " Uploaded</a> <BR>";
            else
               echo "The upload failed<BR>";
      };
       
      ?>
<FORM enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
         Upload this file: <INPUT name="userfile" type="file">
         <INPUT type="submit" name="submit" value="Send File">
      </FORM>

_________________
New image comming soon...

Image hosted by abyss powered website
Image copyright some random person (I made it......)
Abyss > Apache (Meaning abyss is better than apache)
My site powered by abyss->(Undergoing construction)
Back to top View user's profile Send private message
WeaponsX
-


Joined: 14 Sep 2003
Posts: 72
Location: To druck to know.

PostPosted: Thu Feb 12, 2004 3:38 pm    Post subject: Reply with quote

I was looking for one like that. Than you :P Do you know if its the one Aprelium wrote? He wrote a really nice and simple one a WHILE back and I couldn't find it!
_________________
Picture of my a$$ coming soon till than look at this ( ( ) <== NICE A$$!
Back to top View user's profile Send private message Send e-mail AIM Address
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu Feb 12, 2004 4:42 pm    Post subject: Reply with quote

This is the aprelium one...

http://www.aprelium.com/forum/viewtopic.php?p=11844#11844
Back to top View user's profile Send private message
Trix
-


Joined: 03 Apr 2003
Posts: 33

PostPosted: Fri Feb 13, 2004 9:03 am    Post subject: Reply with quote

www.celerondude.com look at his php scripts there the best!
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group