RES: [PHP] Printing

2012-01-06 Thread Alejandro Michelin Salomon
. The library has a folder with a lot of examples. Alejandro MS -Mensagem original- De: Jim Giner [mailto:jim.gi...@albanyhandball.com] Enviada em: quinta-feira, 5 de janeiro de 2012 17:13 Para: Alejandro Michelin Salomon Assunto: Re: [PHP] Printing I don't know what you mean. How

RE: [PHP] Printing

2012-01-05 Thread Steven Staples
nyhandball.com] > Sent: January 5, 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 &

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 righ

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
her than it had to be enabled. > - Original Message - From: "Nilesh Govindarajan" > > To: "Jim Giner" > Cc: > Sent: Thursday, January 05, 2012 10:42 AM > Subject: Re: [PHP] Printing > > > >> On Thu, Jan 5, 2012 at 9:05 PM, Jim Giner

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
Jim Giner" > Cc: > Sent: Thursday, January 05, 2012 10:42 AM > Subject: Re: [PHP] Printing > > > >> On Thu, Jan 5, 2012 at 9:05 PM, Jim Giner >> wrote: >>> >>> Add extension=php_printer.dll in php.ini? >>> >>> Will adding that

Re: [PHP] Printing

2012-01-05 Thread Nilesh Govindarajan
On Thu, Jan 5, 2012 at 9:05 PM, Jim Giner 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 http://nileshgr.co

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 8:35 PM, Jim Giner 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"); > printer_write($hdl,"

[PHP] Printing

2012-01-05 Thread Jim Giner
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"); printer_write($hdl,"This is line 2"); printer_write($hdl,"This is line 3"); printe

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 s

Re: [PHP] Printing PDF

2010-12-29 Thread David Hutto
On Wed, Dec 29, 2010 at 3:13 PM, Steve Staples wrote: > On Wed, 2010-12-29 at 17:36 +, Richard Quadling wrote: >> On 29 December 2010 17:24, Steve Staples 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,

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 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 printe

Re: [PHP] Printing PDF

2010-12-29 Thread Richard Quadling
On 29 December 2010 17:24, Steve Staples 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 of PS, PCL, Esc

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, a

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. > > Any

Re: [PHP] Printing PDF

2010-12-29 Thread Greg Bair
On Wed, 29 Dec 2010 10:36:30 -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,

[PHP] Printing PDF

2010-12-29 Thread Steve Staples
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, for simplicity sake, i am creating a pdf through php (no problems there)

Re: [PHP] Printing....

2010-10-22 Thread Daniel P. Brown
On Fri, Oct 22, 2010 at 16:43, Steve Staples 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 this will be

[PHP] Printing....

2010-10-22 Thread Steve Staples
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 this will be an issue)... but then once the user says "yep... print" i need

[PHP] Printing in columns

2010-08-27 Thread Ashley M. Kirchner
I need some guidance here. I've been fighting with this problem for a few days now and not having a whole lot of luck. I have some, but I run into issues sooner or later. So I'm hoping that someone here can give me some ideas of how to better approach this, perhaps help with c

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

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 wrote: > > > >

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

Re: [PHP] Printing

2008-12-17 Thread Bastien Koert
On Wed, Dec 17, 2008 at 3:16 PM, Dan Shirah 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 it, a

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 sen

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 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 t

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 in

Re: [PHP] Printing

2008-12-17 Thread Bastien Koert
On Wed, 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 f

[PHP] Printing

2008-12-17 Thread Dan Shirah
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 in the folder via PHP? I've looked into the Print functions

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 stylesheets,

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

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 disp

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 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 file.

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 article

[PHP] Printing Web Page

2008-11-06 Thread 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 file. -- PHP General Mailing List (http://www.php.ne

[PHP] Printing JPEG

2008-10-23 Thread Kyle Terry
I'm stuck... What is the best way to send a jpg to a printer with PHP? Looks like it is only working with png and bmp... -- Kyle Terry | www.kyleterry.com

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. http://php.net/set_loca

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: > >

[PHP] Printing date out of array

2008-08-31 Thread Michael S. Dunsavage
This is my date array: $months = array (1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); This is my date select in the form: echo ''; for ($day = 1; $day <= 31; $day++) { echo "$day\n"; } echo ''; echo '';

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 aimin

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 thi

[PHP] Printing Question

2008-01-26 Thread Peter Jackson
OK this is very general. Whats the best way to do formatted printing via php? In my case I have a postgre database that I connect to with a php(naturally seeing as this is the php list). My aim is to convert an Access db to php/postgre. In this access db there are several reports that requ

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 *bett

[PHP] Printing within functions

2007-11-12 Thread Philip Thompson
Hi. I thought of this when I read the emails about using functions or includes... What are your thoughts about *printing* things from within functions? For example: ... ... Obviously, these are over-simplified functions, but you get the point. Nonetheless, do you tend to print things within

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 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 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 wha

[PHP] Printing MSSQL-Query ERROR description in PHP

2007-06-04 Thread karthi keyan
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.

Re: [PHP] printing out this nested array

2007-05-14 Thread Richard Davey
Jim Lucas wrote: suggestion for next time. echo a or 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 bit of code

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 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 ) ) )

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 )

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 > [Err

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 ) ) )

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 unsubsc

[PHP] printing out this nested array

2007-05-14 Thread Don Don
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 get the va

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 px_items.i

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

2007-04-25 Thread Jim Lucas
give this a shot items and notes {$title}"; } echo"  {$id} - {$content} - {$timestamp} - {$notes} - ". "{$link}"; }//while ?> This should do the trick -- Enjoy, Jim Lucas Different eyes see different things. Different hearts beat on different strings.

[PHP] printing a one-to-many relationship

2007-04-25 Thread Thufir
There's a one-to-many relationship between px_items.id and contacts.id, and I want a printout of some data from each. I want to print out the query results px_items.id field once and once only, but the contacts.notes field many times, as there could be many entries. Right now it prints out each r

[PHP] printing page functionality

2006-11-16 Thread Ulf Hyltmark
Hi, We are in need of a printing functionality for our webpage. The problem is that some of our pages has a greater width than a A4 paper so not all of the content will be printed when using the built in printer functionality in the browser. Is there any useful script out there that can take the

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 :

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 htmlspec

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. > >

[PHP] printing special characters in PHP

2006-07-11 Thread Antonio Bassinger
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 (!fwrite($handle, $binaryFILE)) { echo "Fai

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

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 how

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

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 how

[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 this in

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 PHP

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 addres

[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 w

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 clien

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 F

[PHP] Printing library in PHP ?

2006-03-13 Thread robert mena
Hi, 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). >From what I've read I should use CSS to achieve

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 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 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 w

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: 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 wo

[PHP] printing keys and values of array

2006-01-05 Thread Ahmed Abdel-Aliem
Hi i need some help with printing an array, i would like to print the keys and the values of them example : if i have an array like that [EXTENDED] => Array ( [RTCode] => CASE395 [ManuPartNum]

[PHP] PRINTing Problem with CheckBox

2005-11-21 Thread Chirantan Ghosh
Hi All, I have developed this form where people click the check boxes of interested phone numbers which gets emailed to me. My ACT guys tells me I need to print all the Check Box values as unique fields for his intake. I have posted the problem in detail in following URL: http://www.primarywav

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 t

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. > >

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

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 >

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-13 Thread M. Sokolewicz
call me stupid, but why don't you do it like this: $buf = "This is a test"; 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 w

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! "; $buf = ob_get_contents(); $len = strlen($buf); ob_end_clean(); header("Content-type: text/plain"); header("Content-Length: $len"); header("Content-Disposition: attachment; filename=sfyc.html"); print($buf); ?> Tod

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 lat

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 that

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 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. Quit

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. Wh

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 Ca

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 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 heade

[PHP] Printing to a buffer

2005-11-12 Thread Todd Cary
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 statements; "

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 pag

  1   2   3   4   >