Jump to content

php + windows 2003 + printer lptx


mariolos

Recommended Posts

hello my name is mario from chile and have the next problem.

 

I have a program for control of my businnes. this program is made in php + prostgress + apache + windows 2003.

 

The server have windows 2003 and have a printer share.

 

my workstation have configurated the serverr printer with the next instruccion

 

net use lpt2 \\server\printer

 

well when the server had windows 2000 the next instruccion worked well:

 

<?php

include_once "dbConnect.inc.php";
$folio=$_GET["folio"];



$nombretxt = "g:\SISTEMAS\control\datos\fresco.out";
$mitxt = fopen($nombretxt,"w+");
$contenido = "texto del archivo";
fwrite($mitxt,$contenido);
fclose($mitxt);
exec("copy g:\SISTEMAS\control\datos\fresco.out lpt2");

header("location:f_packing.php?folio=$folio");
?> 

 

when i change de windows to 2003 version this not working??

 

any idea?

 

thx in advance..

 

 

Link to comment
https://forums.phpfreaks.com/topic/38556-php-windows-2003-printer-lptx/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.