[PHP] Output to system printer

2002-04-12 Thread Bruce S. Garlock
I have a script which, when modified or added, automatically prints out to a system printer that I define. Here is some sample code: $job_desc=urldecode($job_desc); define(PRINT_CMD, " lpr -Pis "); $prt = "-\n"; $prt .= "| $type DRAWDOWN REQUEST |\n"; $prt .= "---

Re: [PHP] cron with php as apache module

2002-03-22 Thread Bruce S. Garlock
Are you specifying the full path in the crontab? If the raq 3 does not have lynx, you might be able to use wget. I'm not too familiar with wget, you may want to read the manpage. Here's how I run PHP scripts from cron, when PHP is compiled as a DSO: 0 8 * * * TERM=xterm; export TERM; /usr/bin/