Hi I am trying to use the following script to count the number of pdf pages in a pdf file.
$filename = $_ENV{'HOMEDIR'}."/www/path/to/pdf/file";
$cmd = "/usr/local/nf/bin/identify -density 12 -format '%p' '$filename' ";
$out = array();
exec($cmd,$out,$error);
foreach($out as $f=>$v)
{
echo "$f = $v ";
}
However I get no output. I think its a path related issue. How to refer to paths in command line commands? Any help guidance please !
thanks Rahul