473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

Jul 10 '07 #1
1 1445
ro*****@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.
js*******@attglobal.net
==================
Jul 11 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: jmike | last post by:
So I write this sript called printargs.py: ------ #!/usr/local/bin/python import sys print 'there are %d args' % len(sys.argv) for arg in sys.argv: print 'arg: %s' % arg ------
0
by: Arne Jamtgaard | last post by:
I'm getting myself set up on a new Vista box at work, and one of my old scripts has stopped working. Specifically, all calls to os.system return a -1. Whatever action I was asking os.system to...
1
by: =?Utf-8?B?aHVyY29tYmU2?= | last post by:
i have just upgraded to vista from xp, what i wanted to know was how to do system recovery if i have any problems in the future,i had recovery discs for xp,but all i have got for vista is the acer...
13
by: Avi | last post by:
Hi, Is there a UNIX C system command that will let me copy a file? I am looking for something similar to "cp" that can be called within a C program. I know of the "link" system call but this...
2
by: Steven | last post by:
Hello, In English version of Windows Vista, run a command (for example icacls.exe) as administrator from Command Prompt, i can determine if the command successfully executed base on the return...
2
by: p.lavarre | last post by:
Let's suppose you get Python for Vista Windows today from http://www.python.org/download/. Should you then conclude that the tests: if platform.system() in ('Windows', 'Microsoft'): if not...
5
by: Michael | last post by:
I'm trying to build a exe on a vista system using py2exe. It will deploy to vista and XP systems. If it matters, the application uses pyserial, as well. I have VS Studio 2005 installed on this...
2
by: job8663 | last post by:
Hi, I tried to install XP on a Pre-loaded VISTA system and it is showing no Hard Drive attached, where as the same system is running in VISTA without any trouble. Now I want to format a vista...
1
by: =?Utf-8?B?TFQgS2hvbw==?= | last post by:
Hello everybody, I had a window service program that invokes command scripts from bat/cmd files using the C function "system", compiled using Visual Studio 2005. When the scripts are invoked in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.