i wanto use the copy() function
to copy a file into a printer
so it will print it
how do i do that?
thanks in advance
peleg
copy a file to a printer
Moderator: General Moderators
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
yes i am using it from a printer
i tried to do this :
Code: Select all
<?
$source="C:\mysql\bin\pet.txt";
$dest="//192.168.4.215:9100//pet.txt";
echo $dest."<BR>";
if (!copy($source, $dest)) {
print ("failed to copy $dest...<br>\n");
}
?>dunno if you mean printing a file out on a computer, or actually copying a file ( like an engine code ) over to the printer.
if it's the engine code, i wrote a program in delphi that does this that might be beneficial to you.
http://www.delphi3000.com/articles/article_2846.asp
you'll have to register ( it's free ) to view the code though...
if it's the engine code, i wrote a program in delphi that does this that might be beneficial to you.
http://www.delphi3000.com/articles/article_2846.asp
you'll have to register ( it's free ) to view the code though...