You are here: Re: can't upload file « PHP Programming Language « IT news, forums, messages
Re: can't upload file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация