Re: RE: system() on Windows 2003

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   I'm sorry for the mispell; the correct version is without ' before copy:
   system('cmd /c copy /b prnfile lpt4:', $result);
 
   .That gives me the same result
 
   .
 
   .________________________________
 
   .From: Raul IONESCU [mailto:raul.ionescu@xxxxxxxxx]
   .Sent: Friday, February 11, 2005 1:51 AM
   .To: Jason Beaver; php-windows@xxxxxxxxxxxxx
   .Subject: Re:  system() on Windows 2003
 
   .
 
   .You shoud type system('cmd /c 'copy /b prnfile lpt4:', $result);
   .in order to work.
 
   ..I have a script that calls:
   .. system('copy /b prnfile lpt4:', $result);
   ..or:
   .. system('type prnfile > lpt4', $result);
   ..the result is '1' and it doesn't send it to lpt4.
   ..I have tried:
   .. system('type prnfile', $result);
   ..the result of that is '0' and it puts all the info in the file on the
   ..browser screen.
 
   ..I have tried a number of commands in there it seems that the commands
   .that
   ..only require 'read' permissions work but when they need to 'write' to
   ..something it fails.
 
   ..I think that this is a permissions issue but I can't figure out where
   .to set
   ..what permission
 
   ..Has anyone had any experiance making PHP talk directly to a LPT port?
   .so I
   ..an avoid this problem all togeather?
   ..I tried to do that when I wrote this script but was unsuccessful. this
   .same
   ..script works on a 2000 box but with 2003's new security it causes a
   .problem
 
   ..anyone have any ideas?
 
   ..anyone have any ideas?
 
   ..--
   ..PHP Windows Mailing List (http://www.php.net/)
   ..To unsubscribe, visit: http://www.php.net/unsub.php
 
   ..Publicitate:
   ..---------------------------------------------------------------
   ..Doar 3,999lei/absorbant?
   ..http://www.always.ro/duoaction.html
 
   .Publicitate:
 
   .________________________________
 
   .Doar 3,999lei/absorbant?
   .http://www.always.ro/duoaction.html
 
   .Publicitate:
   .---------------------------------------------------------------
   .Posteaza gratuit anunturi de orice dimensiune si ai audienta de sute de
   mii, lunar.


Publicitate:
---------------------------------------------------------------
Posteaza gratuit anunturi de orice dimensiune si ai audienta de sute de mii, lunar.

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux