[Gllug] PHP Again

Jackson, Harry HJackson at colt-telecom.com
Tue Jul 24 16:22:29 UTC 2001



> -----Original Message-----
> From: home at alexhudson.com [mailto:home at alexhudson.com]
> 
> On Tue, Jul 24, 2001 at 04:54:24PM +0100, Jackson, Harry wrote:
> > if ($HTTP_POST_FILES['userfile']['tmp_name']=="none"){
> 
> Isn't $HTTP_POST_FILES['userfile']['tmp_name'] an array 
> rather than a value?
> 
> EG, does $HTTP_POST_FILES['userfile']['tmp_name'][0] work??
> 
> (Convievably you might want to upload more than one file at a time.)

This comes up with the same error as when I use 

if ($HTTP_POST_FILES['userfile']['tmp_name']=="none")

Problem: no file to uploadProblem: no file of 0 lengthProblem: file is not
plain text
Warning: Unable to open 'none' for reading: No such file or directory in
c:\program files\apache group\apache\htdocs\upload.php on line 27
Problem: Could not move file to specified directory

Cheers,
Harry


**********************************************************************
COLT Telecommunications
Registered in England No. 2452736
Registered Office: Bishopsgate Court, 4 Norton Folgate, London E1 6DQ
Tel. 020 7390 3900

This message is subject to and does not create or vary any contractual
relationship between COLT Telecommunications, its subsidiaries or 
affiliates ("COLT") and you. Internet communications are not secure
and therefore COLT does not accept legal responsibility for the
contents of this message.  Any view or opinions expressed are those of
the author. The message is intended for the addressee only and its
contents and any attached files are strictly confidential. If you have
received it in error, please telephone the number above. Thank you.


**********************************************************************

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list