mariolos Posted February 15, 2007 Share Posted February 15, 2007 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 More sharing options...
redarrow Posted February 15, 2007 Share Posted February 15, 2007 check the directory names ok for this line. exec("copy g:\SISTEMAS\control\datos\fresco.out lpt2"); i think folders were redone in 2003 Link to comment https://forums.phpfreaks.com/topic/38556-php-windows-2003-printer-lptx/#findComment-185056 Share on other sites More sharing options...
mariolos Posted February 15, 2007 Author Share Posted February 15, 2007 thanks for the answer but the directory exist in my w2003.. another idea? ??? Link to comment https://forums.phpfreaks.com/topic/38556-php-windows-2003-printer-lptx/#findComment-185058 Share on other sites More sharing options...
redarrow Posted February 15, 2007 Share Posted February 15, 2007 try all back \ slash foward then. Link to comment https://forums.phpfreaks.com/topic/38556-php-windows-2003-printer-lptx/#findComment-185059 Share on other sites More sharing options...
mariolos Posted February 15, 2007 Author Share Posted February 15, 2007 like this: exec("copy g:/SISTEMAS/control/datos/fresco.out lpt2") ??? Link to comment https://forums.phpfreaks.com/topic/38556-php-windows-2003-printer-lptx/#findComment-185073 Share on other sites More sharing options...
mariolos Posted February 15, 2007 Author Share Posted February 15, 2007 nop this solution dont working.. another idea?? hellp plis.. :-\ Link to comment https://forums.phpfreaks.com/topic/38556-php-windows-2003-printer-lptx/#findComment-185457 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.