Computing.Net > Forums > Programming > PHP system function

PHP system function

Reply to Message Icon

Original Message
Name: erick415
Date: September 6, 2007 at 10:14:41 Pacific
Subject: PHP system function
OS: windows server 2003
CPU/Ram: 4 gig
Model/Manufacturer: 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.


Report Offensive Message For Removal


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

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.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: PHP system function

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge