http_upload example

This is a discussion on http_upload example within the PHP Language forums, part of the PHP Programming Forums category; The example that come with upload.php in the HTTP_upload package creaqtes the follow html: <html><body&...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-06-2004
red
 
Posts: n/a
Default http_upload example

The example that come with upload.php in the HTTP_upload package
creaqtes the follow html:
<html><body>
<form action="/public/reenie/t/t.php?submit=1" method="post"
enctype="multipart/form-data">
Send these files:<br>
<input type="hidden" name="MAX_FILE_SIZE" value="100000">

<input name="userfile" type="file"> &lt;-<br>
<input name="otherfile[]" type="file"><br>
<input name="otherfile[]" type="file"><br>
<input type="submit" value="Send files">

</form>
</body></html>
When I try to use it, I choose a file and then I click "sned files".
Nothing happens. The file does not get sent anywhere. Where is it
supposed to be sent ? Theres nothing anywhere about which directory the
file is supposed to be sent to, as far as I can see, so the example
makes no sense to me.

red
Reply With Quote
  #2 (permalink)  
Old 09-06-2004
Alvaro G. Vicario
 
Posts: n/a
Default Re: http_upload example

*** red escribió/wrote (Mon, 06 Sep 2004 22:05:49 GMT):
> When I try to use it, I choose a file and then I click "sned files".
> Nothing happens. The file does not get sent anywhere. Where is it
> supposed to be sent ? Theres nothing anywhere about which directory the
> file is supposed to be sent to, as far as I can see, so the example
> makes no sense to me.


The code you copied takes care of sending the file. You must have a script
somewhere in the server to deal with receiving it. All you need is inside
the $_FILES variable. Print its values with print_r() and you'll see it
clear.

http://www.php.net/manual/en/features.file-upload.php


--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
Reply With Quote
  #3 (permalink)  
Old 09-07-2004
red
 
Posts: n/a
Default Re: http_upload example

Alvaro G. Vicario wrote:
> *** red escribió/wrote (Mon, 06 Sep 2004 22:05:49 GMT):
>
>>When I try to use it, I choose a file and then I click "sned files".
>>Nothing happens. The file does not get sent anywhere. Where is it
>>supposed to be sent ? Theres nothing anywhere about which directory the
>>file is supposed to be sent to, as far as I can see, so the example
>>makes no sense to me.

>
>
> The code you copied takes care of sending the file. You must have a script
> somewhere in the server to deal with receiving it. All you need is inside
> the $_FILES variable. Print its values with print_r() and you'll see it
> clear.
>
> http://www.php.net/manual/en/features.file-upload.php


Yep, that splains it. Thanx. I finally got http_upload to work.
red
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:54 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0