| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		WeaponsX -
 
  Joined: 14 Sep 2003 Posts: 72 Location: To druck to know.
  | 
		
			
				 Posted: Thu Feb 12, 2004 2:54 am    Post subject: Upload script??? | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			            | 
		
	
	
		  | 
	
	
		some random person -
 
  Joined: 06 Oct 2003 Posts: 128 Location: I live here! At my house!
  | 
		
			
				 Posted: Thu Feb 12, 2004 4:37 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			          | 
		
	
	
		  | 
	
	
		WeaponsX -
 
  Joined: 14 Sep 2003 Posts: 72 Location: To druck to know.
  | 
		
			
				 Posted: Thu Feb 12, 2004 3:38 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			            | 
		
	
	
		  | 
	
	
		Anonymoose -
 
  Joined: 09 Sep 2003 Posts: 2192
 
  | 
		 | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		Trix -
 
  Joined: 03 Apr 2003 Posts: 33
 
  | 
		
			
				 Posted: Fri Feb 13, 2004 9:03 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				| www.celerondude.com look at his php scripts there the best! | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		 |