Re: PHP uploaded files logs
| From: | Ashley Sheridan | Date: | Fri, 01 Jan 2010 13:28:56 +0000 |
| Subject: | Re: PHP uploaded files logs | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300774@lists.php.net to get a copy of this message | ||
On Fri, 2010-01-01 at 14:10 +0100, Kim Madsen wrote:
> Hi
>
> Manoj Singh wrote on 01/01/2010 08:07:
> > Hi,
> >
> > Is PHP maintaining the logs regarding files uploaded? Actually I needed it
> > because recently in my developed web site upload functionality seems to stop
> > working even for the correct file and i want to check that which type of
> > files are uploaded. Actually I cannot debug through PHP on the server as my
> > site is on production.
>
> Not to my knowledge, but that should be pretty easy to create, just save
> all $_FILES['uploaded_file'] (or just
> $_FILES['uploaded_file']['tmp_name'],
> $_FILES['uploaded_file']['name']
> and $_FILES['uploaded_file']['size']) into a logfile, note there's an
> error variable too.
>
> --
> Kind regards
> Kim Emax - masterminds.dk
>
Wouldn't the Apache logs show this? Strictly speaking, the file upload
is handled by Apache first, which then passes details along to PHP to
deal with, so a problem might show there first.
Thanks,
Ash
http://www.ashleysheridan.co.uk