Date: 06/28/01
- Next message: Benjamin Boksa: "Re: [phplib] phplib und framesets"
- Previous message: Achim Gosse: "[phplib] phplib und framesets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all
Finally, the problem is fixed
A bug in PHP 4.0.4pl1 for Red Hat (some versions 7.0,7.1 and probably more)
adds new lines "\n" characters to any value posted with a form that includes
a "file" input type (UPLOAD FILE FORMS)
It seems like the bug is fixed in version 4.05+, nevertheless a workaround
can be found
in www.php.net in the BUGs database, search for "upload file"
Thanks for your help
----- Original Message -----
From: Adam Robertson <adam <email protected>>
To: <lazaro <email protected>>
Sent: Wednesday, June 27, 2001 4:36 PM
Subject: RE: [phplib] HELP: Problem uploading files in PHP
Hi again,
just re-read my post and I can see how it didn't make sense. It was meant to
say:
....AFAIK, *PHP* can't upload files in safe mode.
Cheers,
Adam Robertson
Internet Developer
Random Media
14 South Audley Street
Mayfair
London W1K 1HN
t.+44 (0)20 7923 4298
f.+44 (0)20 7598 8826
www.randommedia.co.uk
> -----Original Message-----
> From: Lazaro Ferreira [mailto:lazaro <email protected>]
> Sent: 27 June 2001 15:21
> To: adam <email protected>
> Subject: Re: [phplib] HELP: Problem uploading files in PHP
>
>
> Hi
>
> sorry for this dumbie question
>
> what does AFAIK stand for ?
>
> lazaro
>
> ----- Original Message -----
> From: Adam Robertson <adam <email protected>>
> To: <lazaro <email protected>>
> Cc: <phplib <email protected>>
> Sent: Wednesday, June 27, 2001 12:54 PM
> Subject: RE: [phplib] HELP: Problem uploading files in PHP
>
>
> Have you run a phpinfo on the external site to check that the
> file_uploads
> are enabled and that upload_tmp_dir is set to a real dir with write
> permissions for the php process. Also check that the file
> your uploading is
> less than the upload_max_filesize.
> Also, does your ISP run in safe mode, AFAIK can't upload
> files in safe mode.
>
> Cheers,
> Adam Robertson
> Internet Developer
>
> Random Media
> 14 South Audley Street
> Mayfair
> London W1K 1HN
> t.+44 (0)20 7923 4298
> f.+44 (0)20 7598 8826
> www.randommedia.co.uk
>
>
> > -----Original Message-----
> > From: Lazaro Ferreira [mailto:lazaro <email protected>]
> > Sent: 26 June 2001 16:34
> > To: bill <email protected>; steve <email protected>
> > Cc: phplib <email protected>
> > Subject: Re: [phplib] HELP: Problem uploading files in PHP
> >
> >
> > Hi
> >
> > It doesn't appear to be anything wrong with the php code, It
> > works ok on my
> > pc
> >
> > Locally I run Apache/Win32 + PHP4.0.4pl1 + Mysql 3.23.++
> >
> > Remotely the ISP runs Apache/LinuxRedHat7.2 + PHP4.0.4pl1 +
> > Mysql 3.23.++
> >
> > I have checked the phpinfo() output and everything is ok
> > while running on my
> > pc, but when I copy it to the server, it doesn't work. The
> > browsers (IE5 and
> > Nav4+) reload the page with the form empty as if submition
> > wasn't being done
> >
> > I have looked at the home page phpinfo ouput (local and
> > remote) and the only
> > value that seems like having to do with the problem, is the
> > "HTTP request"
> > value (in the HTTP Headers Information session ) , locally it
> > uses HTTP 1.1
> > protocol, at the server it uses HTTP 1.0
> >
> > could this be the problem ?
> > any comment ?
> >
> > Thanks
> > Lazaro
> >
> >
> > ----- Original Message -----
> > From: Bill Peck <bill <email protected>>
> > To: Stephan Ullmann <steve <email protected>>
> > Cc: Lazaro Ferreira <lazaro <email protected>>; <phplib <email protected>>
> > Sent: Tuesday, June 26, 2001 3:20 PM
> > Subject: Re: [phplib] HELP: Problem uploading files in PHP
> >
> >
> > First lets assume the upload variable is call $file.
> >
> > It could also be that your script is copying the $file_name variable
> > instead of $file. $file_name is the name of the file from
> > the computer
> > that uploaded it. $file is the name of the file on the
> > server after its
> > been uploaded. I use this to handle my uploads for pictures..
> >
> >
> > $dest="/home/httpd/html/images/" . basename($file_name));
> > if( <email protected>("cp '$file' '$dest'")!=0) {
> > echo "Unable to create '$dest' - check permissions<br>\n";
> > }
> >
> > On 26 Jun 2001 13:24:38 +0200, Stephan Ullmann wrote:
> > > Hi
> > >
> > > append phpinfo(); to your script and see whats being uploaded....
> > >
> > > Bye
> > > Stephan
> > >
> > > On Tue, 26 Jun 2001, Lazaro Ferreira wrote:
> > >
> > > > Hi
> > > >
> > > > I need help though a bit off topic, I hope that somebody
> > in the list
> > have had this problem before
> > > >
> > > > I have a script that uploads files to the server. It
> > contains a simple
> > form with a file input field and a submit button. I have
> > exactly the same
> > php setup at my Personal Computer (PC) and my ISP server. The
> > script runs ok
> > on my PC but do nothing at the server. When I click on the
> > submit buttom
> > the browser re-open the page with the form cleaned. It seems
> > like it doesn't
> > post anything to the server, any idea ?
> > > >
> > > > The problem have all to do with the file input field in my form
> > > >
> > > > Thanks for your time
> > > > Lazaro
> > > >
> > >
> > > --
> > > Dipl.-Ing. Stephan Ullmann Tel: +49
> > 89 289-16008
> > > Fachgebiet Raumfahrttechnik Fax: +49
> > 89 289-16004
> > > Technische Universität München
> > > Boltzmannstr. 15
> > > 85748 Garching, Germany Email:
> > S.Ullmann <email protected>
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> > > For additional commands, e-mail: phplib-help <email protected>
> > >
> > >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> > For additional commands, e-mail: phplib-help <email protected>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Benjamin Boksa: "Re: [phplib] phplib und framesets"
- Previous message: Achim Gosse: "[phplib] phplib und framesets"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

