Path is present, Permissions are okay, but still getting error
Posted
by
N e w B e e
on Server Fault
See other posts from Server Fault
or by N e w B e e
Published on 2012-03-24T10:46:06Z
Indexed on
2012/03/24
11:31 UTC
Read the original article
Hit count: 168
I recently installed pdftk using instruction provided at stack overflow
I installed it, and run the commanded whereis pdftk
the result was
/usr/local/bin/pdftk /usr/bin/pdftk
I have the powerpannel access and I saw it through it that pdftk actually exists at the location
i run the command pdftk --version
, it was okay
but when in php i use
<?php
$command = "pdftk --help";
system("PATH=/usr/local/bin/ && $command",$response);
if ($response===FALSE){
echo 'sorry error occured';
}
else{
echo $response;
}
?>
the output is 127 the version i am using is 1.41 and the output '127' is something that i cant understand
can somebody guide me?
© Server Fault or respective owner