Computing.Net > Forums > Programming > PHP system function

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP system function

Reply to Message Icon

Name: erick415
Date: September 6, 2007 at 10:14:41 Pacific
OS: windows server 2003
CPU/Ram: 4 gig
Product: Dell 2150
Comment:

I am trying to run a bat file that executes a print file with the following code.

<?php

system('d:\wamp\www\phpfiles\barcode\printlogo');
?>

The web browser outputs the execution but the file does not print.

If I run the bat file from the command prompt it works fine.

Any ideas are appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: erick415
Date: September 7, 2007 at 11:07:15 Pacific
Reply:

Well just for giggles i added a ping command to the end of my batch file printlogo. When i run the php file it displays the ping data on the screen so the batch is being executed. So I am guessing my problem is with permissions or something. My server is a dell 2950 running winserver 2003, The program i want the batch to execute is dosprint where a user submits data and a image file for the barcode is created then i execute the batch file it runs dosprint and the label spits out of the zebra printer. Any ideas on why the file is not beng executed would be appreciated.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: PHP system function

how can I use system functions www.computing.net/answers/programming/how-can-i-use-system-functions/12776.html

Perl (or PHP) mail function www.computing.net/answers/programming/perl-or-php-mail-function/14685.html

system() function in C www.computing.net/answers/programming/system-function-in-c/7261.html