cron command:
when php outputs to my log file, it always starts off by sayingCode:/user/bin/php "/path/Script.php" >> /path/LogFile.html
so with my output file, it looks something like:Code:X-Powered-By: PHP/5.3.22 Content-type: text/html
the output is in a table format, causing the the repeated text/html header to flood the first 4 or 5 pages of my log file - because they are betweenCode:X-Powered-By: PHP/5.3.22 Content-type: text/html X-Powered-By: PHP/5.3.22 Content-type: text/html X-Powered-By: PHP/5.3.22 Content-type: text/html X-Powered-By: PHP/5.3.22 Content-type: text/html NEW DAY MARKER | 29/04/2013 00:00:07 Total Exchanges: 73294 Total GMT references: 7 Exchanges pending approval: 4
tags.Code:</tr> X-Powered-By: text/html <tr>
is there anyway i can tell it not to put out that kind of header information when running cron jobs? (i don't want to disable it globaly - need web interface to still work with other PHP scripts)
linux host, cpanel, vps
(THANK BINARY GOD THERE IS A PHP FORUM HERE! i hate stack exchange. way too pretentious. )




Reply With Quote