Jump to content

GhOnDiE

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

GhOnDiE's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks i was under the impression that the pecl printer function was for windows machines only. i done a search for printer function and found this. [code] <?php function lpr($STR,$PRN) {   $prn=(isset($PRN) && strlen($PRN))?"$PRN":C_DEFAULTPRN ;   $CMDLINE="lpr -P $prn ";   $pipe=popen("$CMDLINE" , 'w' );   if (!$pipe) {print "pipe failed."; return ""; }   fputs($pipe,$STR);   pclose($pipe); } // lpr() ?>[/code] hopefully it will work i will give it a try today. cheers for the replies it sent me off in the correct direction at least. regards nathan
  2. hi there, im going to make myself a service administration system with php for our shop, to keep track of the repairs that we take in, price etc. the actual making of the intranet site is not the problem, what i want to be able to do is fill in all the fields like a normal form, and then press accept, it creates a job referance and then it will print out a recipt that i can stick to the item and the other part give to the customer ( two ply paper) my problem is that im not sure how i would be able to print from my server which will be upstairs. from php on a website. the recipt printer that we have will accept raw serial data from the com port. is it possible to output data from php directly to the comport, server side??? or if not would it be easier for php to create a file that will then be preinted by some form of cron job? anybody got any ideas on what to do, regards.
  3. hi all, im sure somebody can help on here. im making a website that requires the id field to display 3 numbers ie 001,002,003 i have played around trying to work out how to do it by formatting the data then putting it into the database, however as im using the database as an int and it is auto incremement and primary key how would i go about formatting the numeric text like that? would it be a case of writing a script to add the 00's or can it be done server side by the mysql server? i think that makes sense thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.