ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
[PHP] Batch processing & HTML2PS
by Mrdini other posts by this author
May 2 2002 6:05PM messages near this date
RE: [PHP] Re: tutorial on global variables | Re: [PHP] Batch processing & HTML2PS
Hi,

I'm currently working on a warehouse system, and I'd like to print some 
labels pretty accurately.

At the moment, I'm using Mozilla to print, but this just won't do, 
especially not when we're expecting to print something like 4,000 labels 
next week :D

$client is the MySQL record where the client information is stored.
$copies is the number of copies.

So, what I was thinking was to go :-

User selects number of copies to print & the client number.
Give HTML2ps the PHP URL with all the info stored in the URL (form POST 
IIRC).
Use the CSS defintion of "page-break" to break up each page. (Each page 
is different because there's a barcode on each page, which is generated 
by a function)

Would this work? HOW do I call HTML2ps from inside PHP? Would I be 
better off going:-

loop until 50 copies have been printed.
HTML2ps, print page x;
x = x + 1;
go back to start of loop. (In other words, call HTML2ps repeately. In 
this case, I won't need "page-break" will I?).

Many thanks!

(BTW running Apache on Red Hat 7.2 with PHP 2.x (can't recall off my 
head))

-- 
Yoav Felberbaum
E-Mail: y.m.felberbaum@[...].uk
Website (Not worth looking ^_^) : http://www.wlv.ac.uk/~c9807379/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Mrdini
Mrdini
Jason Wong
Mrdini
Jason Wong

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved