right path of image being referred to in exec() in php

phonix

New Member
HiI am trying to use the following script to count the number of pdf pages in a pdf file.\[code\] $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 ";}\[/code\]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 !thanksRahul
 
Back
Top