You are here: Re: php system command on vista « PHP Programming Language « IT news, forums, messages
Re: php system command on vista

Posted by Jerry Stuckle on 07/11/07 01:46

roocell@gmail.com wrote:
> I'm running a system command on my server
>
> system(copy file.txt lpt1);
>
> to print a file to lpt1. This works fine on an XP machine and also
> works fine on the vista machine if i do it manually from a DOS prompt.
>
> I'm guessing it has something to do with User Acess Control (UAC) and
> elevating the PHP script or something.
>
> Does anyone have a suggestion or run into similar problems running PHP
> on vista ?
>
> cheers
> roocell
>

Sorry, my crystal ball is broken. What do you mean by "it doesn't
work"? What error messages do you get? Anything in your event log?

If it works from the command line, where are you calling it from when it
fails? And does the user executing the system() call have access to
cmd.exe, the file and the printer?


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация