calling executabel file problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
batowiise
Forum Commoner
Posts: 28
Joined: Fri Dec 17, 2010 7:11 am

calling executabel file problem

Post by batowiise »

Hi All,

I have the following script that calls an executable file. It works fine on the testing server but does not function properly on a remote machine.

Code: Select all

<?php
$tmp = exec("C:\\Program Files\\Vehicle Fleet Manager\\VehicleFleetManager.exe"); 
?> 
The path to the executable file is the same on the remote machine.However, when the remote user runs the script, the program rather executes on the testing server.

What am is doing wrong?

Help needed.

Regards.
Peter Kelly
Forum Contributor
Posts: 143
Joined: Fri Jan 14, 2011 5:33 pm
Location: England
Contact:

Re: calling executabel file problem

Post by Peter Kelly »

Are there any error messages? or any more information that might help us help you.
batowiise
Forum Commoner
Posts: 28
Joined: Fri Dec 17, 2010 7:11 am

Re: calling executabel file problem

Post by batowiise »

NO. There are no error message.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: calling executabel file problem

Post by John Cartwright »

PHP likely does not have permission to access the files. You will need to add your PHP user group to the executable group permissions.
Post Reply