Results 1 to 1 of 1
Hi, Im trying to print a txt file on a remote PC using php... I have got this to work with a windows machine using xampp and then using the ...
- 07-31-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 1
Printing a txt file on a remote PC with php
Hi, Im trying to print a txt file on a remote PC using php... I have got this to work with a windows machine using xampp and then using the following php file and a batch file:
test.php
test.batPHP Code:<?php
passthru('test.bat');
?>
Can i do the same thing in ubuntu using xampp?? I know i can print using the "lpr print.txt" command but i doesn't work when i put it directly into the php file or in a sh script because i can't seem to get php to run the scritpCode:start /min notepad /p print.txt
Thanks in advance
PS: I don't know anything about php or shell scripting... I'm just winging it


Reply With Quote
