RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
> > Secondly for file uploads why are you not using the $_FILES[] > > superglobal array? > > I did not write the app, just trying to figure out why it stopped > working after upgrading PHP. You think that's the problem? Well try ... if (is_uploaded_file($_FILES['attach']['tmp_name'])) {

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Brian V Bonini
On Fri, 2003-02-07 at 10:13, Rich Gray wrote: > Hi Brian > > Why are you using $_GET[] when your form is submitting via the 'post' > method? My bust, just a typo. It's actually: if ($attach != "none") that is beign used anyway. > Secondly for file uploads why are you not using the $_FILES[] > s

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
[snip] > > > > > > After upgrading from 4.0.6 to 4.3.0 > > > > > > > Most probably because with 4.3.0 register_globals is set to OFF > by default - > > where does $attach get set? > > > > > Nope, I do have register_globals on in php.ini > > Its being set in another file like this: > method=POST> >

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Brian V Bonini
On Fri, 2003-02-07 at 09:44, Rich Gray wrote: > > > > Any thoughts as to why this snippet: > > > > 25: if ($attach != "none") > > 26: { > > 27:$file = fopen($attach, "r"); > > 28:$contents = fread($file, $attach_size); > > 29:$encoded_attach = chunk_split(base64_encode($contents)); > >

RE: [PHP] 4.0.6 to 4.3.0

2003-02-07 Thread Rich Gray
> > Any thoughts as to why this snippet: > > 25: if ($attach != "none") > 26: { > 27:$file = fopen($attach, "r"); > 28:$contents = fread($file, $attach_size); > 29:$encoded_attach = chunk_split(base64_encode($contents)); > 30:fclose($file); > > would produce these errors: > > Warni