PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 2nd, 2004, 05:33 PM
robijo robijo is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 robijo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy php upload problem Please Help

Alright I need some help I cannot get file uploads to work at all I have my script setup I go to the url and then select the file I want to upload. After I upload the file I go to the upload directory specified in the php.ini and the file is not there. I am running php version 4.3.7 on windows xp. The upload folder is setup so that everyone has read, write, and execute rights listed below is my php script that I am using and an excerpt from my php.ini file



Script

<?

echo'

<!-- The data encoding type, enctype, MUST be specified as below -->

<form enctype="multipart/form-data" action="'.$_SERVER['PHP_SELF'].'" method="POST">

<!-- MAX_FILE_SIZE must precede the file input field -->

<input type="hidden" name="MAX_FILE_SIZE" value="33554432" />

<!-- Name of input element determines name in $_FILES array -->

Send this file: <input name="userfile" type="file" />

<input type="submit" value="Send File" />

</form>

';

?>



Php.ini

;;;;;;;;;;;;;;;;

; File Uploads ;

;;;;;;;;;;;;;;;;



; Whether to allow HTTP file uploads.

file_uploads = On



; Temporary directory for HTTP uploaded files (will use system default if not

; specified).

upload_tmp_dir = C:\upload



; Maximum allowed size for uploaded files.

upload_max_filesize = 10M

Reply With Quote
  #2  
Old November 2nd, 2004, 11:01 PM
pocketsized pocketsized is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Brunei
Posts: 26 pocketsized User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Where's your PHP code that actually handles the copying of the file?

Handling File Uploads

Reply With Quote
  #3  
Old November 3rd, 2004, 10:26 AM
robijo robijo is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 robijo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

Thanks for making me think I looked at page that you posted before but I did not read the entire page and I did not realize that you had to move the file after it was posted or the file would be deleted

Thanks Again

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > php upload problem Please Help


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT