You are here: Re: problems with $_FILES « PHP Programming Language « IT news, forums, messages
Re: problems with $_FILES

Posted by yawnmoth on 10/18/76 12:00

On Jan 15, 2:30 am, "Paul Lautman" <paul.laut...@btinternet.com>
wrote:
> yawnmoth wrote:
> > On Jan 14, 5:08 pm, "Paul Lautman" <paul.laut...@btinternet.com>
> > wrote:
> >> yawnmoth wrote:
> >> > I'm trying to write a script that'll let me upload a *.xls file
> >> > and am having some difficulties. Here are the contents of $_FILE:
>
> >> > Array
> >> > (
> >> > [filename] => Array
> >> > (
> >> > [name] => filename.xls
> >> > [type] =>
> >> > [tmp_name] =>
> >> > [error] => 2
> >> > [size] => 0
> >> > )
> >> > )
>
> >> > As you can observe, there's no tmp_name set and error is set to 2.
> >> > What does this mean? How can I fix it? There doesn't seem to be a
> >> > whole lot of documentation on it on php.net:
>
> >> >http://us3.php.net/manual/en/reserved.variables.php#reserved.variable...
>
> >> > Thanks!
> >> > Array ( [filename] => Array ( [name] => filename.xls [type] =>
> >> > [tmp_name] => [error] => 2 [size] => 0 ) )
>
> >> I went to google and typed
> >> php file upload errors
> >> and clicked "I'm Feeling Lucky" and was taken straight to a page of
> >> the manual with a link right at the top entitled "Error Messages
> >> Explained" Was that really beyond you?
>
> > Apparently it's beyond you. April 17, 2006:
>
> >http://groups.google.com/group/comp.lang.php/msg/0fa08f908c9ec331?dmo...
>
> > I went to google and typed "short open tag php" and clicked "I'm
> > Feeling Lucky" and was taken straight to the appropriate page. Was
> > that really beyond you?
>
> That required one to know that the <? was called a short open tag.
>
> I simply picked words that you had already used in your post!

But I used so many words in my post. When I type "php file upload
tmp_name" into Google (without the double quotes) and click "I'm
feeling lucky" the result I get isn't really all that helpful at all.

With regard to <? and <?php... one's short and one's long. Seems
obvious to me.

 

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

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