|
Posted by Good Man on 07/03/07 21:52
up2trouble <lynettesmith@gmail.com> wrote in news:1183498843.657429.55350
@w5g2000hsg.googlegroups.com:
> Warning: move_uploaded_file(/home/lynettes/public_html/bainbridge/
> documents/) [function.move-uploaded-file]: failed to open stream: Is a
> directory in /home/lynettes/public_html/bainbridge/documents.php on
> line 26
you need to read the error messages. this first one is telling you that
you're trying to move a directory.
> Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to
> move '/tmp/phpU6o1yo' to '/home/lynettes/public_html/bainbridge/
> documents/' in /home/lynettes/public_html/bainbridge/documents.php on
> line 26
this provides another clue... its telling you that instead of using a
directory, provide the final, full path (including file name).
ie:
"if (move_uploaded_file($file_tmp_name, $uploaddir))"
to
if (move_uploaded_file($file_tmp_name, $uploaddir.$file_name))
Navigation:
[Reply to this message]
|