This is a discussion on "weird uploading file" within the PHP Forum section. This forum, and the thread "weird uploading file are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
weird uploading file
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
weird uploading file
Hi,
I was uploading a very small text file (sqltext.txt)from a folder(A) and try to copy it to the another folder(B)where is the same folder with the fileupload.php and file_upload.html. After uploading the sqltext.txt, the browser displays nothing, neither a error message nor any message. Not sure what happened? Would you mind helping me for this problem? Any inputs will be much appreciated!!!
|
|
|
|
#2
|
||||
|
||||
|
Re: weird uploading file
Can you check your error log to see if there is any PHP error occurring.
Also a few hints It is is much more secure to use is_uploaded_file() and move_uploaded_file() in PHP. So you could change your code to be
Hope that helps some.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: weird uploading file
Quote:
|
|
#4
|
||||
|
||||
|
Re: weird uploading file
Anything in your php error log?
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#5
|
|||
|
|||
|
Re: weird uploading file
Thanks so much. There is the problem of duplicated '['
$tmpname=$_FILES[['ufile']['tmp_name']; |
|
#6
|
||||
|
||||
|
Re: weird uploading file
LOL
Error log is very helpful tool.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Support for File Uploading | Sporky | PHP Forum | 2 | Apr 19th, 2007 21:09 |
| Weird IE bug? | spinal007 | Web Page Design | 15 | Sep 7th, 2006 14:17 |
| Uploading visitors file to my site | pokerskatershark | Web Page Design | 8 | Jan 17th, 2006 01:22 |
| Uploading file | G-Shock | Classic ASP | 6 | Dec 29th, 2005 05:18 |