开发者

Validate if an application is at the server

开发者 https://www.devze.com 2022-12-18 04:40 出处:网络
I have an own webserver and for one of my clients I need to be able to search through PDF\'s. I\'ve asked my hostingprovider to install the xPDF package. Now I\'ve come to testing and I\'m calling thi

I have an own webserver and for one of my clients I need to be able to search through PDF's. I've asked my hostingprovider to install the xPDF package. Now I've come to testing and I'm calling this line of code in a PHP script:

$content = shell_exec('/usr/local/bin/pdftotext test.pdf -');

The only thing is, I'm getting a NULL result with. So, my question, is there a way to validate if the program is really installed? Btw, I'm not even sure if the pa开发者_如何学JAVAth is correct. I'm pretty new if it comes to having an own webserver. I've taken this example from : http://davidwalsh.name/read-pdf-doc-file-php


If you have shell access, log in using SSH, and try

whereis pdftotext

if the only thing you get is a

pdftotext:

then it is most likely not (or not properly) installed.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号