Re: [PHP] Printing in php

2006-07-05 Thread BBC
weetat wrote: Hi all , I am using PHP 4.3.2 and MYSQL . I need to do printing function in php . Basically , in my client web page , it will display the list of items on the html page. And i have a print button , so that the user can print the html page to their local printer

Re: [PHP] Printing in php

2006-07-04 Thread Ligaya Turmelle
weetat wrote: Hi all , I am using PHP 4.3.2 and MYSQL . I need to do printing function in php . Basically , in my client web page , it will display the list of items on the html page. And i have a print button , so that the user can print the html page to their local printer. Any way

[PHP] Printing in php

2006-07-03 Thread weetat
Hi all , I am using PHP 4.3.2 and MYSQL . I need to do printing function in php . Basically , in my client web page , it will display the list of items on the html page. And i have a print button , so that the user can print the html page to their local printer. Any way how to do

Re: [PHP] Printing in php

2006-07-03 Thread Chris
weetat wrote: Hi all , I am using PHP 4.3.2 and MYSQL . I need to do printing function in php . Basically , in my client web page , it will display the list of items on the html page. And i have a print button , so that the user can print the html page to their local printer. Any way

Re: [PHP] Printing in php

2006-07-03 Thread Richard Lynch
On Mon, July 3, 2006 3:53 am, weetat wrote: I am using PHP 4.3.2 and MYSQL . I need to do printing function in php . Basically , in my client web page , it will display the list of items on the html page. And i have a print button , so that the user can print the html page

[PHP] Printing with php

2006-05-03 Thread Mace Eliason
Hi I am working on a project that creates invoices. It will allow the client to print out these invoices after they have been created. Something that I have always noticed is that when you print form the internet you always get the site address and other info on the print out. Is there a

Re: [PHP] Printing with php

2006-05-03 Thread John Wells
On 5/3/06, Mace Eliason [EMAIL PROTECTED] wrote: Hi I am working on a project that creates invoices. It will allow the client to print out these invoices after they have been created. Something that I have always noticed is that when you print form the internet you always get the site address

Re: [PHP] Printing with php

2006-05-03 Thread tg-php
Couple of things you can try.. 1. If you have control of the browsers being used, there may be a setting to turn off the address printing (I seem to remember something like that.. but don't remember what browser it was). 2. CSS2 has some print control functionality that might help 3. (more

Re: [PHP] printing from php

2005-10-29 Thread Richard Lynch
On Fri, October 28, 2005 6:17 am, Tom Cruickshank wrote: I've been reading up on printing out documents using PHP (using Printer functions calls in the php manual) I'm using a Linux and/or FreeBSD operating system to run my php code on (in apache). However, I am surfing these pages

[PHP] printing from php

2005-10-28 Thread Tom Cruickshank
Hello, I've been reading up on printing out documents using PHP (using Printer functions calls in the php manual) I'm using a Linux and/or FreeBSD operating system to run my php code on (in apache). However, I am surfing these pages using a Windows XP machine. Has anyone ever tried having

Re: [PHP] printing from php

2005-10-28 Thread Jochem Maas
don't post a new question to an existing thread - it lessens your exposure! Tom Cruickshank wrote: Hello, I've been reading up on printing out documents using PHP (using Printer functions calls in the php manual) I'm using a Linux and/or FreeBSD operating system to run my php code

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

[PHP] Printing using php script CRON

2004-07-27 Thread Vern
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: lynx

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

[PHP] Printing from PHP

2003-11-06 Thread Peter Goggin
Is it possible to have a php a script that will run on my server but let me print to my client network printer? What I am doing is using php to generate html for a report from a data base which is displayed on the clients screen. I would like to offer the client the option of printing this

Re: [PHP] Printing from PHP

2003-11-06 Thread Marco Tabini
Depends on how your overall network is configured. If the server on which PHP is running is on the same internal network as the printer, then the short answer is yes--the way you implement it depends on which OS your system is running. If PHP is running on Windows, there is a subset of

Re: [PHP] Printing from PHP

2003-11-06 Thread John W. Holmes
Peter Goggin wrote: Is it possible to have a php a script that will run on my server but let me print to my client network printer? No. PHP is server side, printing is client side. If php will not support access to a client printer is there any way of embedding a Form Feed in the display so

[PHP] Printing a PHP Class

2002-07-31 Thread Marty McGowan
PHPers, In a genaology application, where I add individuals to an array: $everyone[] = new Individual($id); I'd like to print the indiviuals' attributes. Some of these are in array's themselves: like a list of event's in one's life. My problem is: when printing the Class Variables

RE: [PHP] Printing a PHP Class

2002-07-31 Thread Jay Blanchard
[snip] My question is: How does one print out the Array? [/snip] Try print_r http://www.php.net/manual/en/function.print-r.php HTH! Jay I took a pain pill, why are you still here? *** * * * Texas PHP Developers

Re: [PHP] Printing a PHP Class

2002-07-31 Thread 1LT John W. Holmes
Use is_array() to see if it's an array. If it is, then loop through it and display the contents... ---John Holmes... - Original Message - From: Marty McGowan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 31, 2002 4:15 PM Subject: [PHP] Printing a PHP Class PHPers

Re: [PHP] Printing a PHP Class

2002-07-31 Thread 1LT John W. Holmes
Maybe code will help... My problem is: when printing the Class Variables using the standard approach: = function print_vars($obj) { $arr = get_object_vars($obj); while (list($prop, $val) = each($arr)) { echo $prop\t$val\n; } } = Try this: function

Re: [PHP] Printing a PHP Class

2002-07-31 Thread Jerome Houston
Also, you could use print_r($obj); to look at everything in the class, with arrays already expanded for you. http://www.php.net/manual/en/function.print-r.php jerome From: Marty McGowan [EMAIL PROTECTED] PHPers, In a genaology application, where I add individuals to an array:

[PHP] printing a php/html page to the browser

2001-05-23 Thread Dennis Gearon
If I had a mixed html/php page, i.e. where some of the strings had html in them, other than setting the header to be of mime type 'text', how could I process this page to display it exactly like it was seen in a text editor, in html to the browser? -- PHP General Mailing List

Re: [PHP] printing a php/html page to the browser

2001-05-23 Thread mheumann
Usually, it should be enough to rename the file extension to .phps and the browser should handle it correctly, if the web server (i.e. apache) is properly configured. Michael. If I had a mixed html/php page, i.e. where some of the strings had html in them, other than setting the header to be