Re: PHP uploaded files logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux