Welcome Guest, Not a member yet? Register   Sign In
print on a printer server
#1

[eluser]Giga[/eluser]
Hi,
I am using codeigniter for develop a little management system.
I'm fighting with this problem:
When a customer clicks on submit, are extrapolated data from a DB then the server will print to a printer attached to it.
I try on linux :
Code:
system or exec('lpr path_file/file -Pprinter');
//This command works if running from a terminal but in file php, with system or exec, nothing do

On windows 7 with:
Code:
system or exec('print /D:printer path_file/file');
//This command doesn't works in prompt and dosen't work in file php, with system or exec, nothing do

Help me!!




Theme © iAndrew 2016 - Forum software by © MyBB