PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 22nd, 2000, 01:43 PM
jds jds is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 1 jds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hey there,

can anyone tell me how to download a file with php3 onto the server?

thx
jds

Reply With Quote
  #2  
Old April 24th, 2000, 08:34 AM
enygma enygma is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Posts: 38 enygma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
the easiest way i've found if you just want to use php....go look on freshmeat.net for the "phpfileupload.class"
it comes with plenty of instructions and makes it nice and easy

Reply With Quote
  #3  
Old April 25th, 2000, 03:32 PM
ujludwig ujludwig is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 63 ujludwig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
I assume you mean upload in this response. Here's a page that's 1/2 mine and 1/2 a million other programmers... it's where I started

<?php

if ($Form_send_button)
{
set_time_limit(60);
print ($Form_file_up);
# print ("The file type is :" . filetype(basename($Form_file_up)));
$path1 = "C:/windows/temp/";
$dest = $path1 . $Form_file_up_name;
# print ("The uploaded path is $dest");
if(copy($Form_file_up,$dest))
{ // copy the file from the temp directory to the upload directory, and test for success
echo "$dest has been uploaded<br>n";
}
else
{
echo "Upload directory not write-enabledn"; // you need to write-enable the upload directory // set flag
}
}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Untitled</title>
</head>

<body>
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="LibUpload.php3">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="10485760">
Send this file: <INPUT NAME="Form_file_up" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File" name='Form_send_button'>
</FORM>



</body>
</html>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > downloading a file...with php3?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap