[Gllug] PHP Again
Tom Gilbert
tom at linuxbrit.co.uk
Tue Jul 24 14:40:02 UTC 2001
* Jackson, Harry (HJackson at colt-telecom.com) wrote:
> Hi all
> I am, again, struggling with php. I am trying to provide a facility
> where people can upload files onto my machine from a browser but I am unable
> to get it to work. I have had a look through the manual and so far have had
> little joy.
>
> track_vars is on
> my tmp download directory is set up.
> In the book it says that I can use $userfile in my code and this will be OK
> but in the manual it says I should use $HTTP_POST_FILES['userfile']['name']
> for versions after 3.x. I am unable to get it to work using either.
> I am getting the following error.
>
> Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
> `T_NUM_STRING' in c:\program files\apache group\apache\htdocs\upload.php on
> line 10
That's just a syntax error. Probably related to quoting or something,
but we'd need to actually see the source (especially line 10) to tell.
Tom.
--
.^. .-------------------------------------------------------.
/V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk |
/( )\ | Open Source/UNIX consultant | tom at linuxbrit.co.uk |
^^-^^ `-------------------------------------------------------'
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list