manju visu wrote:

Hi everyone,

If possible reply me.
I have one problem.

I'm trying to execute exec() command to generate stats by using the exec() function, it does not generate an error but it also does not run the command, and the value of $result thats returned from exec() is 11.

Below is my PHP coding.
dock1 refers to my .exe program.

<html>
<?
$path="/home/manju/public_html/docking/dock1 dock_ptc1.mac";
$result=exec($path,$alloutput,$returnvalue);
print("<br>");
print("Return Value: $returnvalue <br>");
?>
</html>


I wonder if it could it be permissions? Is the user that the webserver is running as allowed to run the program? If exec returned 11 then I guess that indicates an error. Does the content of $alloutput or $returnvalue give a clue?

HTH
Chris


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to