You are here: Re: move_uploaded_file lose variables « PHP Programming Language « IT news, forums, messages
Re: move_uploaded_file lose variables

Posted by nicemotion on 11/23/07 17:45

On 23 Nov, 18:31, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> On Fri, 23 Nov 2007 18:26:55 +0100, <nicemot...@gmail.com> wrote:
> > On 23 Nov, 17:59, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> >> On Fri, 23 Nov 2007 17:37:28 +0100, <nicemot...@gmail.com> wrote:
> >> > the following easy script correctly insert a record in the DB but is
> >> > not moving the images (Logo and Foto) to the server /foto folder.
>
> >> > can't understand why 'cause the script is easy and correct and i guess
> >> > it loses the $file_temp var (actually the printout of $file_temp0
> >> > return nothing)
>
> >> > i even tryed to write it repeating the parameters i/o using variables
> >> > but no results.
>
> >> Examine
> >> $_FILES['indexname']['error']http://nl2.php.net/manual/en/features.file-upload.errors.php
> > written like this returns nothing , the record is inserted but the
> > pics are not uploaded.
>
> > ......... GetSQLValueString($nuovo_nome1, "text"),
> > GetSQLValueString($_POST['Descrizione'],
> > "text"),
> > GetSQLValueString($_POST['Pdf_'], "int"));
>
> > $errore=($_FILES['Logo']['tmp_name']['error']);
>
> > print($errore);
>
> > However i'm afraid (almost sure) i'm not using "" $_FILES['indexname']
> > ['error'] "" correctly
>
> What does var_dump($_FILES); tell you? 'Logo' might not even be there....
> --
> Rik Wasmus

Dear Rik,

tks for yr debug suggestions, i'll study and revert

What's strange is that print ($nuovo_nome0); returns correctly /foto/
img_name

...is the $file_temp0=($_FILES['Logo']['tmp_name']) that does't works

Btw, debug and revert

Ciao by now (dinner time !) eand thanks a lot

 

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

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