php system command on vista

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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 ?


Re: php system command on vista wrote:
Quoted text here. Click to load it

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.

Site Timeline