Re: [PHP] Printing using php script CRON

2004-07-28 Thread Burhan Khalid
Vern wrote: I get: # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n What I wrote was wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n You forgot - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Printing using php script CRON

2004-07-27 Thread Jay Blanchard
[snip] I hate to keep beating a dead horse, but this horse is not quite dead yet. I need to print a php script from a web site using CRON. I'm thinking something like this should work but I don't know enough about it to say that it would. I know that I can run a php script using CRON as such:

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
If you have a printer attached to the server from where the cron is running you might try lynx --dump http://yoursite.com/cronjob.php lpt1 or something similar. Not tested. Actually it's a netwotl printer and in order to print the job I need to type the following on the box: lpr -P

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Jason Wong
On Tuesday 27 July 2004 20:33, Vern wrote: If you have a printer attached to the server from where the cron is running you might try lynx --dump http://yoursite.com/cronjob.php lpt1 or something similar. Not tested. Actually it's a netwotl printer and in order to print the job I need to

Re: [PHP] Printing using php script CRON

2004-07-27 Thread James E Hicks III
On Tuesday 27 July 2004 08:33 am, Vern wrote: Actually it's a netwotl printer and in order to print the job I need to type the following on the box:     lpr -P hp1300n myfilename.txt So I'm not exctaly sure how I can do that This works great for me. Except that I use lp -d printername

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
One would think this should be really simple but it's not. I need to retrieve the file somewhere on the internet. I read somewhere in order to read a php script's output you need to add the php command in front, as such: php http://yoursite.com/cronjob.php | lpr -P hp1300n however I am getting

RE: [PHP] Printing using php script CRON

2004-07-27 Thread Jay Blanchard
[snip] One would think this should be really simple but it's not. I need to retrieve the file somewhere on the internet. I read somewhere in order to read a php script's output you need to add the php command in front, as such: php http://yoursite.com/cronjob.php | lpr -P hp1300n however I am

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
I feel like I taking a hammer and well I'm sure you all know the feeling. cURL does help me to get the file and save the file somewhere locally, however printing a page like this gives me all the html code (i.e. html, etc) and I need the report that is being displayed to the browser in all

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Ed Curtis
You could try this: http://marginalhacks.com/Hacks/html2jpg/ Save the page as an image, and then run it through the printer. It does have some overhead though to get it done. Hope it helps, Ed On Tue, 27 Jul 2004, Vern wrote: I feel like I taking a hammer and well I'm sure you all know

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
Seems to me that this needs XWindows or something install, am I incorrect? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Burhan Khalid
Vern wrote: One would think this should be really simple but it's not. wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Vern
I get: # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n --16:49:59-- http://www.comp-wiz.com/index.html = `-q' Resolving www.comp-wiz.com... done. Connecting to www.comp-wiz.com[207.234.154.95]:80... connected. HTTP request sent, awaiting response... 200 OK Length:

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Jason Wong
On Wednesday 28 July 2004 04:51, Vern wrote: I get: # wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n --16:49:59-- http://www.comp-wiz.com/index.html = `-q' Resolving www.comp-wiz.com... done. Connecting to www.comp-wiz.com[207.234.154.95]:80... connected. HTTP