A lesser known trick is that mod_php maps stderr to the Apache log. And, there is a stream for that, so file_put_contents('/path/to/file.log', $foo . PHP_EOL, FILE_APPEND);; will nicely dump the value of $foo into the Apache error log. 转自: http://sta
1 /* 2 Copyright (c) 2009-2012 Roger Light <roger@atchoo.org> 3 All rights reserved. 4 5 Redistribution and use in source and binary forms, with or without 6 modification, are permitted provided that the following conditions are met: 7 8 1. Redistri