Re: [PHP] PHP uploaded files logs
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
Re: [PHP] PHP uploaded files logs
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] PHP uploaded files logs
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
Re: [PHP] PHP uploaded files logs
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