Re: PLS HELP ME
| From: | Tijnema ! | Date: | Wed, 14 Mar 2007 10:35:02 +0000 |
| Subject: | Re: PLS HELP ME | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250542@lists.php.net to get a copy of this message | ||
On 3/14/07, raaj sharma <rjsharma2000@yahoo.com> wrote:
Sir, I am trying to use printer functions in my script.pls. help me. The printer is working fine with other documents of ms-word etc. i am trying it on localhost. Is it needed to make any changes in php.ini. if so how it will work on the server. pls. help me Thanx Raaj The code is: <?php $handle = printer_open("HP PSC 1400 series"); printer_write($handle, "Text to print"); printer_close($handle); ?> It is giving errors like : Warning: printer_open() [function.printer-open]: couldn't connect to the printer [HP PSC 1400series] in C:\apachefriends\xampp\htdocs\Project\Seekitall\printer.php on line 2It just means that your printer is NOT named HP PSC 1400series, find out what the real name of the device is!
Warning: printer_write(): supplied argument is not a valid Printer Handle resource in C:\apachefriends\xampp\htdocs\Project\Seekitall\printer.php on line 4 Warning: printer_close(): supplied argument is not a valid Printer Handle resource in C:\apachefriends\xampp\htdocs\Project\Seekitall\printer.php on line 5 These errors are because first command failed...
____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/