php system command on vista

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • roocell@gmail.com

    php system command on vista

    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

  • Jerry Stuckle

    #2
    Re: php system command on vista

    roocell@gmail.c om 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@attgl obal.net
    =============== ===

    Comment

    Working...