Re: [PHP] Need help detecting attached files

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 03:26, Don wrote: > Hi, > > I'm using a mailer class that allows for external file attachments. I was > using the test: > > if ($HTTP_POST_FILES[$val]['size']) { > > Which worked fine. However, I wanted something more generic that works for > POST or GET How do you me

[PHP] Need help detecting attached files

2003-01-06 Thread Don
Hi, I'm using a mailer class that allows for external file attachments. I was using the test: if ($HTTP_POST_FILES[$val]['size']) { Which worked fine. However, I wanted something more generic that works for POST or GET so I wrote the following code: $request = 'HTTP_' . getenv('REQUEST_METH