It's actually pretty similar to Linux stuff. Most of my local stuff I do is Win2k, and I don't have much of a problem transferring. Apart from directories... But then I have a nice little thing in my config file to figure out if the file is being run locally, or live, and changes the values for that...
The forms are pretty straight forward to create... Here's something straight from my website... $now = time(); $home_dir = "d:/www/fatcuban/"; print "File Upload<br>"; print "Name: ".$file."<br>"; print "Original Name: ".$file_name."<br>"; print "Size: ".$file_size."b<br>"; print "Type: ".$file_type."<br>"; if( $file_size > "10000" ) { print "File too big. Keep filesize below 10000<br>"; } else { if( $file_type == "text/plain" || $file_type == "text/html" ) $new_file = "downloads/".$now.".txt"; if( isset( $new_file ) ) { print "New File: ".$home_dir.$new_file."<br>"; #copy file to it's new location if( copy( $file, $home_dir.$new_file ) ) { print "File successfully copied - <a href=\"".$new_file."\">here</a><br>"; } else { print "<b>ERROR</b> File copy error: <br> Source: ".$file."<br>Destination: ".$home_dir.$new_file."<br>"; $new_file = ""; } unlink( $file ); } else { print "Invalid File type or no file<br>"; $new_file = ""; } } Customise $home_dir for whatever you have... This will only upload txt or html files... But it will display the file properties even if the file is denied. Also has a file size limit of about 10k. This is a cut down script of something straight of my website, and that runs on both a win xp box, and a linux box. Only difference is $home_dir comes from my config file, and detects for itself what system it's on. chris kranz fatcuban.com -----Original Message----- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 18:10 To: 'Chris Kranz' Subject: RE: [PHP-WIN] File Upload Help Needed Chris, Thanks for your reply. It explains it but it doesn't really give you any examples. Everything in the manual seems to be Linux based anyways and for the time being, I'm on Windows 2000. Do you have an example you'd like to donate? Thanks, Jeremy -----Original Message----- From: Chris Kranz [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:23 AM To: 'PHP' Subject: RE: [PHP-WIN] File Upload Help Needed http://www.php.net/manual/en/features.file-upload.php Surprisingly enough, straight from the manual ;) chris kranz fatcuban.com -----Original Message----- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 17:13 To: PHP Subject: [PHP-WIN] File Upload Help Needed PHP List, I'm new to PHP and I'd like to create a File Upload Page for my users. Can someone point me in the right direction about how to get started or offer a script to learn from? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-0559 http://www.starprecision.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php