php - How to execute xpdf (pdftotext.exe) on shared drive? -
im trying parse pdf text via php
, xpdf
(pdftotext.exe). on localhost everythings works well, when im trying move on server, im getting troubles.
first of checked settings on server , safe_mode off, exec not disabled , permissions rwxrwxrwx
.
then im trying this
$command = "\\\\149.223.22.11\\cae\\04_knowledge-base\\tools\\pdftotext.exe -enc utf-8 ". $filename . " \\\\149.223.22.11\\cae\\04_knowledge-base\\output.txt"; $result = exec($command,$output,$args); echo shell_exec($command);
which isnt working. when $result, $output,
empty, $args returns 1 coresponds incorrect function document windows system error codes
whole command looks \\149.223.22.11\cae\04_knowledge-base\tools\pdftotext.exe -enc utf-8 \\149.223.22.11\cae\04_knowledge-base\testpdf\04_egerland_final_paper.pdf \\149.223.22.11\cae\04_knowledge-base\output.txt
, when dirrectly inputed commandline, working.
so im bit out of ideas. have hint?
edit 20160201 - aditional trying made aditional tests , when im trying run similar command exec localhost (target .exe file, input , output file in same location, im using localhost not server) working. im checking differences in server settings. can here problem, localhosts server api apache 2.0 handler , server cgi/fastcgi?
so mistake on side. badly checked iis permissions , forgot assign user virtual directory wana access. advice , more wisdom double (maybe triple) check if have permissions set correctly.
Comments
Post a Comment