Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 8:35 PM, Jim Giner jim.gi...@albanyhandball.com wrote: My first attempt to print something to a printer. I actually just went ahead and tried this from my website: $hdl = printer_open(); printer_write($hdl,This is my printed page); printer_write($hdl,This is line 1);

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
Add extension=php_printer.dll in php.ini? Will adding that line install the extension? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 9:05 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Add extension=php_printer.dll in php.ini? Will adding that line install the extension? It will enable the extension. Install = compile + enable. It will not work if you don't have the DLL. -- Nilesh Govindarajan

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
To: Jim Giner jim.gi...@albanyhandball.com Cc: php-general@lists.php.net Sent: Thursday, January 05, 2012 10:42 AM Subject: Re: [PHP] Printing On Thu, Jan 5, 2012 at 9:05 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Add extension=php_printer.dll in php.ini? Will adding that line

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
didn't tell me anything other than it had to be enabled. - Original Message - From: Nilesh Govindarajan cont...@nileshgr.com To: Jim Giner jim.gi...@albanyhandball.com Cc: php-general@lists.php.net Sent: Thursday, January 05, 2012 10:42 AM Subject: Re: [PHP] Printing On Thu, Jan 5, 2012

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
I can't tell you much on this, because I don't use windows. You have to get the source at http://pecl.php.net/printer and compile it. I don't know the procedure, etc. -- Nilesh Govindarajan http://nileshgr.com That was a short trip. Clicked on the link for documentation and it takes me

RE: [PHP] Printing

2012-01-05 Thread Steven Staples
, 2012 10:55 AM To: php-general@lists.php.net Subject: Re: [PHP] Printing I can't tell you much on this, because I don't use windows. You have to get the source at http://pecl.php.net/printer and compile it. I don't know the procedure, etc. -- Nilesh Govindarajan http://nileshgr.com

Re: [PHP] Printing PDF

2010-12-29 Thread Greg Bair
On Wed, 29 Dec 2010 10:36:30 -0500 Steve Staples sstap...@mnsi.net wrote: Hi! I have an app that needs to be created, and it is all running on linux. I am sure I shoulnd't really write it using PHP, but it's kinda what I know, and am familiar with... so I am thinking about doing with PHP.

Re: [PHP] Printing PDF

2010-12-29 Thread Paul M Foster
On Wed, Dec 29, 2010 at 10:36:30AM -0500, Steve Staples wrote: Hi! I have an app that needs to be created, and it is all running on linux. I am sure I shoulnd't really write it using PHP, but it's kinda what I know, and am familiar with... so I am thinking about doing with PHP. Anyway,

Re: [PHP] Printing PDF

2010-12-29 Thread Steve Staples
On Wed, 2010-12-29 at 11:49 -0500, Paul M Foster wrote: On Wed, Dec 29, 2010 at 10:36:30AM -0500, Steve Staples wrote: Hi! I have an app that needs to be created, and it is all running on linux. I am sure I shoulnd't really write it using PHP, but it's kinda what I know, and am

Re: [PHP] Printing PDF

2010-12-29 Thread Richard Quadling
On 29 December 2010 17:24, Steve Staples sstap...@mnsi.net wrote: I can create the PDF's no problem, it is just how to send the created pdf to the printer to print (it is a label printer, printing 3x5 labels) What type of printer? Some printers require their own language and won't have any sort

Re: [PHP] Printing PDF

2010-12-29 Thread Steve Staples
On Wed, 2010-12-29 at 17:36 +, Richard Quadling wrote: On 29 December 2010 17:24, Steve Staples sstap...@mnsi.net wrote: I can create the PDF's no problem, it is just how to send the created pdf to the printer to print (it is a label printer, printing 3x5 labels) What type of printer?

Re: [PHP] Printing PDF

2010-12-29 Thread David Hutto
On Wed, Dec 29, 2010 at 3:13 PM, Steve Staples sstap...@mnsi.net wrote: On Wed, 2010-12-29 at 17:36 +, Richard Quadling wrote: On 29 December 2010 17:24, Steve Staples sstap...@mnsi.net wrote: I can create the PDF's no problem, it is just how to send the created pdf to the printer to

Re: [PHP] Printing PDF

2010-12-29 Thread Paul M Foster
On Wed, Dec 29, 2010 at 12:24:14PM -0500, Steve Staples wrote: On Wed, 2010-12-29 at 11:49 -0500, Paul M Foster wrote: On Wed, Dec 29, 2010 at 10:36:30AM -0500, Steve Staples wrote: Hi! I have an app that needs to be created, and it is all running on linux. I am sure I shoulnd't

Re: [PHP] Printing....

2010-10-22 Thread Daniel P. Brown
On Fri, Oct 22, 2010 at 16:43, Steve Staples sstap...@mnsi.net wrote: Ok, here is an interesting one... I am building an application, that basically listens for input on 2 ip addresses (not a problem there)... then it does a bunch of stuff, puts info to a terminal window (again, i dont think

Re: [PHP] Printing

2008-12-17 Thread Bastien Koert
On Wed, Dec 17, 2008 at 2:57 PM, Dan Shirah mrsqua...@gmail.com wrote: Hello all, Could someone please point me in the right direction for printing files through PHP? I already have my application setup so that it creates documents and saves them to a folder. How would I go about printing

Re: [PHP] Printing

2008-12-17 Thread Jason Pruim
On Dec 17, 2008, at 2:57 PM, Dan Shirah wrote: Hello all, Could someone please point me in the right direction for printing files through PHP? I already have my application setup so that it creates documents and saves them to a folder. How would I go about printing all of the files

RE: [PHP] Printing

2008-12-17 Thread Jay Blanchard
[snip] Could someone please point me in the right direction for printing files through PHP? I already have my application setup so that it creates documents and saves them to a folder. How would I go about printing all of the files in the folder via PHP? I've looked into the Print functions in

Re: [PHP] Printing

2008-12-17 Thread Dan Shirah
Do you want to print this on your office printer or on the website users printer? If you are looking for away to print it on their printer, why not just grab all the files that need to be printed, make a PDF of it, and then use the browsers print feature? -- Jason Pruim

Re: [PHP] Printing

2008-12-17 Thread Dan Shirah
Does it save them to a folder on the server? Or does it save them on the client? If it is on the server then the server would have to send the docs to a printer queue. If it is on the client PHP cannot really do anything about. PHP cannot force the client to print but it could send the

Re: [PHP] Printing

2008-12-17 Thread Bastien Koert
On Wed, Dec 17, 2008 at 3:16 PM, Dan Shirah mrsqua...@gmail.com wrote: Do you want to print this on your office printer or on the website users printer? If you are looking for away to print it on their printer, why not just grab all the files that need to be printed, make a PDF of

Re: [PHP] Printing

2008-12-17 Thread Dan Shirah
You can't, the best you can do is send the PDF down and let the user choose to do with it what they will -- Bastien So you think I should try and look into a way to have FPDF append each document to the already created document, and once all pages have been added to the PDF force it

Re: [PHP] Printing

2008-12-17 Thread Dan McCullough
I did something similar, but it was some work I did for a company and the application was an internal application that used PHP and a Java applet to send the file to a workers local printer since it cant be accomplished by PHP itself. On Wed, Dec 17, 2008 at 3:30 PM, Dan Shirah

Re: [PHP] Printing

2008-12-17 Thread clive
Dan Shirah wrote: Hello all, Could someone please point me in the right direction for printing files through PHP? On I project I recently worked on, I used php to read a template file (rtf) and makes some changes and then save it in a folder on the server. This was a windows machine and I

Re: [PHP] Printing Web Page

2008-11-13 Thread Patrick Moloney
Thanks to all. That worked well. I just had to insert the stylesheet link on each of a couple dozen pages, but it worked. My pages were a little complicated and took some work - and could probably use more but I'll deal with that as I go. Some samples I found were very simple print

Re: [PHP] Printing Web Page

2008-11-08 Thread Ashley Sheridan
On Sat, 2008-11-08 at 08:01 -0500, Patrick Moloney wrote: Ashley Sheridan wrote: On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote: 6 nov 2008 kl. 21.21 skrev Patrick Moloney: I'd like to enable my users to print individual web pages from their browser. If they simply select

Re: [PHP] Printing Web Page

2008-11-08 Thread Patrick Moloney
Ashley Sheridan wrote: On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote: 6 nov 2008 kl. 21.21 skrev Patrick Moloney: I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is

RE: [PHP] Printing Web Page

2008-11-06 Thread Jay Blanchard
[snip] I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is displayed in a scrolling text area. The web page is static html and css, in a php file. [/snip] There are some very good

Re: [PHP] Printing Web Page

2008-11-06 Thread Frank Arensmeier
6 nov 2008 kl. 21.21 skrev Patrick Moloney: I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is displayed in a scrolling text area. The web page is static html and css, in a php

Re: [PHP] Printing Web Page

2008-11-06 Thread Ashley Sheridan
On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote: 6 nov 2008 kl. 21.21 skrev Patrick Moloney: I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is displayed in a

Re: [PHP] Printing date out of array

2008-08-31 Thread Ólafur Waage
I would suggest the time() value to be saved in your database. Since the date() function can use that as the second parameter and you can use any format date() allows. Or make your own. Ólafur Waage [EMAIL PROTECTED] 2008/8/31 Michael S. Dunsavage [EMAIL PROTECTED]: This is my date array:

Re: [PHP] Printing date out of array

2008-08-31 Thread Jochem Maas
Michael S. Dunsavage schreef: This is my date array: $months = array (1 = 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); you want, if you ask me, to get you head round the following functions.

Re: [PHP] Printing Question

2008-01-26 Thread Floor Terra
On Jan 26, 2008 1:03 PM, Peter Jackson [EMAIL PROTECTED] wrote: Whats the best way to do formatted printing via php? You could try PDFlib(). Draw your reports to landscape formated pdf's and print them. Oh and I'm aiming for a unix/windows outcome. pdf is platform independent. I hope this

Re: [PHP] Printing Question

2008-01-26 Thread Robert Cummings
On Sat, 2008-01-26 at 15:19 +0100, Floor Terra wrote: On Jan 26, 2008 1:03 PM, Peter Jackson [EMAIL PROTECTED] wrote: Whats the best way to do formatted printing via php? You could try PDFlib(). Draw your reports to landscape formated pdf's and print them. Oh and I'm aiming for a

Re: [PHP] Printing within functions

2007-11-12 Thread Jake
Obviously, these are over-simplified functions, but you get the point. Nonetheless, do you tend to print things within functions or pass the results back and then print them? I understand it may depend on the current context, but which way do you lean and is one way or the other considered

Re: [PHP] Printing MSSQL-Query ERROR description in PHP

2007-06-05 Thread Jim Lucas
karthi keyan wrote: Hi, Is there any way to print the reason why the query has been failed, like the way MySQL-PHP has mysql_error()? Regards, KARTHIK. - Download prohibited? No problem! CHAT from any browser, without download. Is this

Re: [PHP] Printing MSSQL-Query ERROR description in PHP

2007-06-05 Thread Stut
karthi keyan wrote: Is there any way to print the reason why the query has been failed, like the way MySQL-PHP has mysql_error()? Hmm, where to look for information on the MSSQL functions in PHP. Hey, I got a crazy plan. Let's try looking in the MSSQL part of the PHP manual. Come navigate

Re: [PHP] Printing MSSQL-Query ERROR description in PHP

2007-06-05 Thread Richard Lynch
On Mon, June 4, 2007 11:02 pm, karthi keyan wrote: Is there any way to print the reason why the query has been failed, like the way MySQL-PHP has mysql_error()? Gee, I dunno. You think there might be? Maybe it's in the manual?! http://us2.php.net/manual/en/ref.mssql.php There are only 40

Re: [PHP] printing out this nested array

2007-05-14 Thread Crayon Shin Chan
On Monday 14 May 2007 18:41, Don Don wrote: am thinking echo $arrayName['Errors']['ErrorId']; // should display the value but it does not Anyone wants to shed more light ? echo $arrayName['Errors'][0]['ErrorId']; // ?? -- Crayon -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] printing out this nested array

2007-05-14 Thread Richard Davey
Don Don wrote: I am having a bit of a confusion printing the values of an array i have. When i print_r this array it contains the following: Array ( [ValueA] = ValueA [ValueB] = valueB [TestValue] = TestValue [Errors] = Array ( [0] = Array ( [ErrorId] = AD27JH [ErrorMsg] = OK ) ) ) I can

Re: [PHP] printing out this nested array

2007-05-14 Thread Don Don
oops ! [0] cheers Richard Davey [EMAIL PROTECTED] wrote: Don Don wrote: I am having a bit of a confusion printing the values of an array i have. When i print_r this array it contains the following: Array ( [ValueA] = ValueA [ValueB] = valueB [TestValue] = TestValue [Errors] =

RE: [PHP] printing out this nested array

2007-05-14 Thread Brad Fuller
Don Don wrote: I am having a bit of a confusion printing the values of an array i have. When i print_r this array it contains the following: Array ( [ValueA] = ValueA [ValueB] = valueB [TestValue] = TestValue [Errors] = Array ( [0] = Array ( [ErrorId] = AD27JH [ErrorMsg] = OK ) ) ) I can

Re: [PHP] printing out this nested array

2007-05-14 Thread Jim Lucas
Don Don wrote: I am having a bit of a confusion printing the values of an array i have. When i print_r this array it contains the following: Array ( [ValueA] = ValueA [ValueB] = valueB [TestValue] = TestValue [Errors] = Array ( [0] = Array ( [ErrorId] = AD27JH [ErrorMsg] = OK ) ) ) I can

Re: [PHP] printing out this nested array

2007-05-14 Thread Myron Turner
Jim Lucas wrote:-- Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Unknown Malvolio,12th Night, III.iv -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/

Re: [PHP] printing out this nested array

2007-05-14 Thread Richard Davey
Jim Lucas wrote: suggestion for next time. echo a pre or plaintext tag out before you echo your array next time and you will then see the nesting of the arrays Doing that would have made the answer to this question very obvious You could also benefit from installing this very handy little

Re: [PHP] printing a one-to-many relationship

2007-04-25 Thread Jim Lucas
give this a shot html headtitleitems and notes/title/head body ?php $user=feeds; $host=localhost; $password=password; $database = feeds; $connection = mysql_connect($host,$user,$password) or die (couldn't connect to server); $db = mysql_select_db($database,$connection) or die (Couldn't select

Re: [PHP] printing a one-to-many relationship

2007-04-25 Thread Richard Lynch
$last_entry = 'an extremely unlikely entry'; while (list($entry, $note) = mysql_fetch_row($entries)){ if ($entry != $last_entry){ echo $entry; $last_entry = $entry; } echo $note; } On Wed, April 25, 2007 1:35 pm, Thufir wrote: There's a one-to-many relationship between

Re: [PHP] printing special characters in PHP

2006-07-11 Thread Jochem Maas
Antonio Bassinger wrote: Dear ALL, I've an binary file with special (non-printable) characters including '' '/' ''. I retrieve this file from the database, into a variable those 3 chars are not non-printable (the fact that I see them in this email is proof enough. $binaryFILE. I then

Re: [PHP] printing special characters in PHP

2006-07-11 Thread nicolas figaro
Antonio Bassinger a écrit : Dear ALL, I've an binary file with special (non-printable) characters including '' '/' ''. I retrieve this file from the database, into a variable $binaryFILE. $binaryMS = explode(,$binaryMMS); foreach ($binaryFILE as $ii) { echo $ii; try this : echo

Re: [PHP] printing special characters in PHP

2006-07-11 Thread tedd
At 10:16 AM + 7/11/06, Antonio Bassinger wrote: Dear ALL, I've an binary file with special (non-printable) characters including '' '/' ''. I retrieve this file from the database, into a variable $binaryFILE. I then copy the content to a temporary file, opened with handle $handle : if

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

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 to their

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 library in PHP ?

2006-03-20 Thread robert mena
Hi Steve, This seems to be a good alternative. I've found pdflib($), ezPDF (dead?) e this fpdf as different ways to generate pdf. One drawback is that I'd have to construct all my documents 'by hand'. For trully dynamic this is no problem but for those that only differs at the name of the

Re: [PHP] Printing library in PHP ?

2006-03-14 Thread Steve Brown
I am currently migrating an application originally written with Delphi to PHP. Everything is going fine except the printing of the reports that does not produce the same visual result (i.e does not look the same or has some aligmment issues). We generate all of our printed reports using FPDF

Re: [PHP] printing keys and values of array

2006-01-06 Thread tg-php
I agree with the previous responder, foreach() is the way to go. Here's the doc page: http://uk2.php.net/manual/en/control-structures.foreach.php To get the keys, use the examples that are use $key = $value. Assuming your array is in $infoArr, you'd do this: foreach ($infoArr as $category =

Re: [PHP] printing keys and values of array

2006-01-05 Thread Zareef Ahmed
read about foreach function. Zareef Ahmd - Original Message - From: Ahmed Abdel-Aliem [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, January 05, 2006 7:58 PM Subject: [PHP] printing keys and values of array Hi i need some help with printing an array, i would like

RE: [PHP] printing keys and values of array

2006-01-05 Thread Brady Mitchell
-Original Message- i need some help with printing an array, i would like to print the keys and the values of them example : I use the dump_array posted by examancer at the following address: http://www.phpbuilder.com/board/showthread.php?t=10213508 when debugging, it should work well

Re: [PHP] printing keys and values of array

2006-01-05 Thread Jim Moseby
Ahmed Abdel-Aliem wrote: ... and i like to print it this way RTCode:CASE395 ... foreach($array as $key=$value){echo $key.':'.$value;} JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing to a buffer

2005-11-14 Thread Richard Lynch
On Sun, November 13, 2005 8:20 am, Marcus Bointon wrote: On 13 Nov 2005, at 00:17, Jasper Bryant-Greene wrote: seem to do that. I just tried application/text since I use application/pdf for other applications. Whatever it's giving the user the ability to do, it's probably because the

Re: [PHP] Printing to a buffer

2005-11-14 Thread Richard Lynch
On Sun, November 13, 2005 1:53 pm, Marcus Bointon wrote: On 13 Nov 2005, at 19:27, Jasper Bryant-Greene wrote: Many thanks! I did not know that MIME-Type. Change duly made! You're not suggesting that you actually set the MIME-Type to application/force-download, are you? I think he

Re: [PHP] Printing to a buffer

2005-11-14 Thread Richard Lynch
On Sun, November 13, 2005 4:55 pm, Todd Cary wrote: Because this was just a test of what will be many print lines. The original application used a file to hold the data and upon request by the user, it was emailed. But with my client's shared server, files cannot be opened...a pain. If you

Re: [PHP] Printing to a buffer

2005-11-14 Thread Marcus Bointon
On 14 Nov 2005, at 19:01, Richard Lynch wrote: It may not be my final choice whether they download or not, but if a browser doesn't treat: application/octet-stream as a download, and only as a download, then that browser is pretty broken. Letting the user configure their browser for that MIME

Re: [PHP] Printing to a buffer

2005-11-13 Thread Marcus Bointon
On 13 Nov 2005, at 00:17, Jasper Bryant-Greene wrote: seem to do that. I just tried application/text since I use application/pdf for other applications. Whatever it's giving the user the ability to do, it's probably because the browser doesn't recognise the (invalid) MIME-Type. Quite -

Re: [PHP] Printing to a buffer

2005-11-13 Thread Todd Cary
Marcus - Many thanks! I did not know that MIME-Type. Change duly made! Todd Marcus Bointon wrote: On 13 Nov 2005, at 00:17, Jasper Bryant-Greene wrote: seem to do that. I just tried application/text since I use application/pdf for other applications. Whatever it's giving the user

Re: [PHP] Printing to a buffer

2005-11-13 Thread Jasper Bryant-Greene
Todd Cary wrote: Marcus - Many thanks! I did not know that MIME-Type. Change duly made! You're not suggesting that you actually set the MIME-Type to application/force-download, are you? Todd Marcus Bointon wrote: On 13 Nov 2005, at 00:17, Jasper Bryant-Greene wrote: seem to do

Re: [PHP] Printing to a buffer

2005-11-13 Thread Marcus Bointon
On 13 Nov 2005, at 19:27, Jasper Bryant-Greene wrote: Many thanks! I did not know that MIME-Type. Change duly made! You're not suggesting that you actually set the MIME-Type to application/force-download, are you? I think he is. I've called the MIME-type police and they'll be round

Re: [PHP] Printing to a buffer

2005-11-13 Thread Todd Cary
Just before the police knocked at my door, I made a few changes! ? ob_start(); print This is a testbr; $buf = ob_get_contents(); $len = strlen($buf); ob_end_clean(); header(Content-type: text/plain); header(Content-Length: $len); header(Content-Disposition: attachment;

Re: [PHP] Printing to a buffer

2005-11-13 Thread M. Sokolewicz
call me stupid, but why don't you do it like this: $buf = This is a testbr; header(Content-type: text/plain); header(Content-Length: .strlen($buf)); header(Content-Disposition: attachment; filename=sfyc.html); echo $buf; ?? looks easier to me... no output buffering required... Todd Cary wrote:

Re: [PHP] Printing to a buffer

2005-11-13 Thread Todd Cary
Because this was just a test of what will be many print lines. The original application used a file to hold the data and upon request by the user, it was emailed. But with my client's shared server, files cannot be opened...a pain. If you have a better solution, I am open to other ideas.

Re: [PHP] Printing to a buffer

2005-11-12 Thread Jasper Bryant-Greene
Todd Cary wrote: My client's new shared server does not allow printing to a file, so I want my print statement to print to a buffer, then I'll send it to the user via Headers. This does not work since print does no go to the buffer, or at least appears not to: I get the errors from the header

RE: [PHP] Printing to a buffer

2005-11-12 Thread php-mail
-Original Message- From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] [snip] application/text isn't a MIME-Type, is it? Do you mean text/plain? [/snip] Or maybe text/html? Sent: 12 November 2005 22:46 To: Todd Cary Cc: php-general@lists.php.net Subject: Re: [PHP] Printing

Re: [PHP] Printing to a buffer

2005-11-12 Thread Todd Cary
Yup! It was the missing parentheses! Works as planned. Many thanks The application/text gives the user the ability; text/plain does not seem to do that. I just tried application/text since I use application/pdf for other applications. Todd Jasper Bryant-Greene wrote: Todd Cary

Re: [PHP] Printing to a buffer

2005-11-12 Thread Jasper Bryant-Greene
Todd Cary wrote: Yup! It was the missing parentheses! Works as planned. Many thanks The application/text gives the user the ability; text/plain does not The ability to...? seem to do that. I just tried application/text since I use application/pdf for other applications. Whatever

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

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 on (in

Re: [PHP] Printing \n and \r to the screen

2005-08-25 Thread Richard Lynch
On Wed, August 24, 2005 8:33 am, Dotan Cohen wrote: I seem to be having trouble with \n and \r in variables. I write my code on a linux box, and the server is linux. So I should always have \n\r, no? Is there a way the I could print $variable; and have it show me the /n and /r 's ? I tried

Re: [PHP] Printing \n and \r to the screen

2005-08-25 Thread Rory Browne
If you're reading this text from a file, and then splitting it into seperate lines, then I personally think you should leave this to the built-in file() function. On 8/24/05, Dotan Cohen [EMAIL PROTECTED] wrote: I seem to be having trouble with \n and \r in variables. I write my code on a

Re: [PHP] Printing \n and \r to the screen

2005-08-25 Thread Dotan Cohen
On 8/25/05, Richard Lynch [EMAIL PROTECTED] wrote: Windows uses \r\n Linux uses \n Mac uses \r Depending on what tools you use to read/write/create the files, and where the data comes from, it's possible that you have any of those formats. This is especially true of FORM data from a

RE: [PHP] Printing \n and \r to the screen

2005-08-24 Thread Jay Blanchard
[snip] I seem to be having trouble with \n and \r in variables. I write my code on a linux box, and the server is linux. So I should always have \n\r, no? Is there a way the I could print $variable; and have it show me the /n and /r 's ? I tried with a srt_replace() on /n and on /r, but they do

RE: [PHP] Printing \n and \r to the screen

2005-08-24 Thread George Pitcher
[snip] I seem to be having trouble with \n and \r in variables. I write my code on a linux box, and the server is linux. So I should always have \n\r, no? Is there a way the I could print $variable; and have it show me the /n and /r 's ? I tried with a srt_replace() on /n and on /r, but they

Re: [PHP] Printing \n and \r to the screen

2005-08-24 Thread Jochem Maas
Dotan Cohen wrote: I seem to be having trouble with \n and \r in variables. I write my code on a linux box, and the server is linux. So I should always have you are mixing /n and \n etc etc - stop it :-) \n is a new line in linux \r is a new line in (older?) version of MacOS \r\n

Re: [PHP] Printing \n and \r to the screen

2005-08-24 Thread Dotan Cohen
On 8/24/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I seem to be having trouble with \n and \r in variables. I write my code on a linux box, and the server is linux. So I should always have \n\r, no? Is there a way the I could print $variable; and have it show me the /n and /r 's ? I

Re: [PHP] Printing

2005-04-05 Thread Richard Lynch
On Sat, April 2, 2005 9:03 am, Niels Riis Kristensen said: I am using a Unix machine (Mac) but can't find ways to print to my local printer. Plenty of information about printing from a PC, but none from a mac. Can that be, that you can't print from php to mac? First, get printing to work AT

RE: [PHP] Printing

2005-04-02 Thread Warren Vail
That is because Windoz, for all it's faults, provides a bit of an interface for applications to exercise some control over printed output, and even attempts to make it device independent. Don't know if Gnome, or other GUI's provide something, but if you write the output intended for a printer to

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:

  1   2   3   >