|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > php upload problem Please Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|