PHP uploaded files logs
am 01.01.2010 08:07:56 von Manoj Singh
--0016e64606cafab0a4047c150776
Content-Type: text/plain; charset=ISO-8859-1
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.
Please help me out.
Regards,
Manoj
--0016e64606cafab0a4047c150776--
Re: PHP uploaded files logs
am 01.01.2010 14:10:54 von Kim Madsen
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP uploaded files logs
am 01.01.2010 14:28:56 von Ashley Sheridan
--=-tlUyUDwcD8z9MS3k5OUR
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
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
--=-tlUyUDwcD8z9MS3k5OUR--
Re: PHP uploaded files logs
am 01.01.2010 17:10:28 von Daniel Egeberg
On Fri, Jan 1, 2010 at 14:28, Ashley Sheridan wrote:
> 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.
No, Apache doesn't log POST data only the request.
--
Daniel Egeberg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP uploaded files logs
am 02.01.2010 01:27:58 von Kim Madsen
Daniel Egeberg wrote on 01/01/2010 17:10:
> No, Apache doesn't log POST data only the request.
And even if it did, not all hosting companies give you access to your
access and error log files...
Making your own logfile is a good way to debug, for instance I had a
problem with creating a zip header, in that case you can't print to the
screen, so putting debug info in a php generated logfile is a easy way
to move on...
--
Kind regards
Kim Emax - masterminds.dk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php