-   Linux - Newbie (
-   -   Automated Printing from PHP/MySQL web form information (

Using Debian 03-22-2011 02:44 PM

Automated Printing from PHP/MySQL web form information

I am learning PHP to take information submitted in a web-form and store it in a MySQL database, but I also need it to automatically print to the laser printer I have setup. So that a notice or printout is produced of the information.

My question is... what route do I go to automate printing from web-based information in a PHP/MySQL database?

Is it PERL ? or does PHP have a feature to do this? I am willing do to the leg work and accomplish it, I just need some insight of which software technology is going to help me accomplish my goal.

michaelk 03-25-2011 07:14 AM

One quick idea would be the system command to print your data saved as a file.
system('lpr -P printername datafile', $retval);

Using Debian 03-28-2011 01:00 AM

I guess I would need to autosave the form to a text format then figure out a way to "monitor" the location of new files and issue a print command on them as they come in.

I guess I will need to dive in perl for this or can shell scripting pull off that kind of automation?

All times are GMT -5. The time now is 12:39 PM.