Reply to Re: $_FILE variables returning null when in body of page.

Your name:

Reply:


Posted by dyer85 on 11/26/06 09:08

I know the problem's solved, but I thought I'd share some info on what
became a serious headache for me. I set the MAX_FILE_SIZE hidden input
variable in the HTML form, and didn't realize the limit was too small
for several of the expected files for upload. For some reason, I wasn't
making the connection as to why certain files weren't making it into
the $_FILES hash. Lol! Maybe it's just me.

If you don't bother setting this, then php.ini will handle the limits.

On Nov 25, 7:27 am, bill <nob...@spamcop.net> wrote:
> Michael Fesser wrote:
> > .oO(bill)
>
> >> Actually the file uploads fine, the $_FILES array gets loaded and
> >> will display the values in the script that lives above the
> >> webpage code. The $_FILES array returns null values when I have
> >> a section of php in the body of the page.
> >> here is some of my code:---------------------
> >> [...]
>
> > The code works here (PHP 5.2), except for
>
> >> <?
>
> > which should be <?php.
>
> > MichaThanks Michael;
>
> It turned out that I made a little error midway down the code.
> While testing to see if the $_FILES array exists, I was setting
> it to null.
>
> Which explains a lot of problems.
>
> Thanks.
>
> bill

[Back to original 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

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